git_for_programmers

Git for Programmers

GitHub: GitOps, GitHub Copilot (Learn AI-Assisted Python Programming), GitHub for Major Software and Languages, GitHub Fundamentals, GitHub Inventor: GitHub and Git, GitHub Stars: GitHub Organization Ranking, GitHub Stars Ranking, GitHub Star Ranking for Repositories, GitHub Big Tech, Cloud Monk's favorite GitHub repos, gh plugin, git help, Version control, GitHub topics, Git topics, Git, GitHub repos, GitHub bibliography, Manning Git-GitHub Series, GitHub Actions, GitHub CodeSpaces, GitHub CLI, GitHub Free, GitHub Pro, GitHub Team, GitHub Enterprise, GitHub security (GitHub MFA - GitHub Passkeys) - GitHub Secrets - Authenticating with GitHub from Git (gh auth login), GLFS, GitHub Packages, GitHub alternative source code repos (GitHub - GitLab - AWS CodeCommit - Google Cloud Source Repositories - Bitbucket), Install Git, Git for Windows (choco search github, brew search github), Git for Linux, Git for macOS, GitHub glossary, Git glossary. (navbar_github - see also navbar_git, navbar_gitops, navbar_iac)

Git for Programmers - 9781801075732, June 2021,

https://learning.oreilly.com/library/view/git-for-programmers/9781801075732

Learn to track, branch, merge, and manage code revisions for real-world development scenarios

Key Features Master Git and understand the significance of version control Get to grips with Git's typical workflows, advanced functions, and their implementations Understand important Git commands to manage your repository Book Description Git is the most popular version control system in the world. It allows developers to keep up with frequent code changes in a project, ensures there are no code conflicts between the developers, and reverts to an older version of code when required.

Git for Programmers comprehensively equips you with actionable insights on advanced Git concepts in an engaging and straightforward way. This book will help you gain expertise on Git with many practical use cases as you progress through the chapters.

The book begins with a quick history of Git and instructions on how to get it and install it, after which you'll dive into the creation and cloning of your repository. As you progress through the book, you'll explore Git places, branching, and GUIs.

Once you understand the fundamentals, you'll learn how to handle merge conflicts, rebase, amend, interactive rebase, and use the log. You'll also explore important Git commands for managing your repository. Finally, the book concludes with coverage of bisect, blame, and several other problem handling techniques.

By the end of this book, you'll be able to use Git with confidence; saving, sharing, and managing files as well as undoing mistakes and rewriting history.

What you will learn

  • Create and clone repositories
  • Understand the difference between local and remote repositories
  • Use, manage, and merge branches back into the main branch
  • Utilize tools to manage merge conflicts
  • Manage commits on your local machine through interactive rebasing
  • Use the log to gain control over all the data in your repository
  • Use bisect, blame, and other tools to undo Git mistakes

Who this book is for

If you have basic understanding of Git and want to strengthen your command over advanced techniques and navigate different functions, this book is for you.

Table of Contents

Git for Programmers

By Jesse Liberty, Jon Galloway

Creating Your Git Repository

Branching, Places, And GUIs

Five places The work area The index/staging area Skipping the staging area Visual Studio GitHub Desktop Local and remote repositories The stash Branches Programmer 1 (CommandLine) and calculator Pushing the new branch Examining origin Adding commits to a branch The Book branch – Git within Visual Studio Committing with GitHub Desktop Status What's on origin? Adding more commits Examining your commits Summary Challenge Answer Merging, Pull Requests, And Handling Merge Conflicts queue Merging overview Book What's in that push? Visual Studio Details, details GitHub Desktop Push it already Visual Studio Merge conflicts Merging from the command line Fast forward True merge Avoiding conflicts Summary Challenge Answer Task #1: Set up a new repository and clone it to two different folders Task #2: Have one person populate the main branch with the beginnings of UtilityKnife, commit the changes, and push it Task #3: Each programmer creates a feature branch. Each programmer then puts the beginning of their feature into their branch, committing frequently (more frequently than you would in “real life”) Sara and the Calculator Task #4: Merge the main branch into the feature branch frequently to ensure that if there are conflicts, you catch them early Task #5: John is building the temperature converter. Have him “borrow” code from the calculator. See if there are merge conflicts Rebasing, Amend, And Cherry-Picking queue Rebasing How Git does it Getting your head around it Rebase early and rebase often Rebase locally only Rebasing in practice Seeing the rebase at work Conflicts Amending Cherry-picking Visual Studio cherry-picking Summary Challenge Answer Creating a new repository on GitHub Creating two feature branches with fake programmers Frequent rebasing Amending a commit to add a file Amending a commit to change the message Cherry-picking one commit onto main Interactive Rebasing queue Interactive rebasing at work Creating our example Using interactive rebase to clean up your commits Summary Challenge Workflow, Notes, And Tags queue Standard workflow Mirroring your repo Replicating an existing repo Adding and showing notes Tags Pointing to a different tag Summary Challenge Aliases queue Aliases Summary Challenge Answer Using The Log queue Getting started with log The LogDemo program Visual Studio GitHub Desktop log at the command line Which files changed? What changed in each file? diff Visual Studio What changed in this file over time? Search Where are my commits? Summary Challenge Answer Create a new repository Add at least 6 commits Find the names of every file changed in each commit Find what changed in a given file over time Find all the files you committed in the past hour (or whatever time increment makes sense) Important Git Commands And Metadata queue Stash Clean Metadata Summary Challenge Answer Finding A Broken Commit: Bisect And Blame queue Blame Challenge Fixing Mistakes queue You wrote the wrong message in the last commit You forgot to add changed files from your last commit Problems with the order of commits or their messages You need to undo changes made in a commit You misnamed your branch You committed to the wrong branch You trashed a file in a previous commit You messed up the remote by pushing a broken branch Quiz Answers What do you do if you left out a changed file in the last commit? What do you do if you committed to the wrong branch? What do you do if you corrupted a file in a previous commit? What do you do if you need to undo changes made in a commit? What do you do if you trashed Master by pushing a broken branch? Next Steps queue Other Books You May Enjoy queue Index queue


© 1994 - 2024 Cloud Monk Losang Jinpa or Fair Use. Disclaimers

SYI LU SENG E MU CHYWE YE. NAN. WEI LA YE. WEI LA YE. SA WA HE.


git_for_programmers.txt · Last modified: 2024/04/28 03:30 by 127.0.0.1