Loading tutorials
git log, and run git status. It builds the working model that the rest of the tutorial relies on. A branch is not a copy of your files and not a container of commits. It is a small named reference to one commit.5 min readgit init, git add, git commit, git status, and git log. You should also know that a branch is a named pointer to a commit. Git 2.23 or later is needed for git switch.5 min readgit init, git add, git commit, git status and git log. It also assumes you are comfortable in a terminal and have Git 2.23 or later, which added git switch. Check your version with git --version.4 min readgit switch -c and that you know a branch is a pointer to a commit. Git accepts most names, but some names are rejected, some cause trouble later, and a good convention saves your team time. The chapter covers all three.5 min readgit switch -c, and read git log. You should also know that a branch is a pointer to a commit and that HEAD points at the branch you have checked out.5 min readgit init -b. Everything else works on older versions.5 min readgit status, git add, and git commit. A merge conflict is the one case where a three-way merge can't finish on its ow5 min readorigin. You should also know that git clone sets up that remote for you.5 min readorigin. It also assumes you know what a remote-tracking branch such as origin/main is. You need Git 2.23 or later for git switch.4 min readgit log, and create and switch branches with git switch. It covers what a detached HEAD is, how you end up in one, how to keep work you do there, and how to leave it safely.5 min readHEAD is and how a branch points at a commit. You need Git 2.28 or later to run the demo script as written, because it uses git init -b.5 min readgit merge and git rebase, and push to a remote with git push -u. It covers how the two commands differ in what they do to history, when each is the better choice, and which mistakes cause lost or duplicated work.5 min readgit log --oneline, and resolve a merge conflict. It covers how git cherry-pick works, when to use it, and the errors you will meet.5 min readgit log --graph. It covers how teams turn those mechanics into an agreed process, which common workflows exist, and where each one fails.6 min read