Loading tutorials
git log. It also assumes you know that a branch is a movable pointer to a commit, and that you understand pull requests and remote branches. Commands use git switch, and the later chapters need Git 2.38 or newer, so check git --version7 min readgit rebase on a single branch, and you need Git 2.38 or newer for the later chapters. Here we only look at the problem. The fix comes in the next chapter.6 min readgit rebase on a single branch and know that a branch is a pointer to a commit. You need Git 2.38 or newer, because that release added --update-refs. Check with git --version.5 min readgit rebase -i on a single branch and edit its todo list. It also assumes you have a stack of branches like the one built earlier in this tutorial, and Git 2.38 or newer. Here you will learn what the extra lines in the todo list mean, how Git uses them, and what hap6 min readgit rebase --update-refs on a stack, as in the previous chapters, and that you have Git 2.38 or newer. It covers how to turn the option on permanently, how to override it, and the surprises that come with an always-on setting.5 min readgit rebase on a single branch and read git log --graph output. It also assumes you have a stack of two or more branches and Git 2.38 or newer. The earlier chapters showed that git rebase --update-refs moves every branch in a stack in one rebase. Here you will l6 min readgit rebase --update-refs on a stack, as in the previous chapters. It also assumes you know what a remote-tracking branch such as origin/feature-1 is, and that you have Git 2.38 or newer. The chapter covers what happens when you publish the result.6 min readgit rebase on a single branch and have read the earlier chapters on stacks and --update-refs. You need Git 2.38 or newer. The chapter explains the three-argument form of rebase. That form is what lets you restack a branch after its parent was squash-merged.6 min readgit rebase --update-refs, and push it with --force-with-lease. You need Git 2.38 or newer.6 min readgit rebase --update-refs, and you can read update-ref lines in the todo list. It covers what happens when a rebase of a stack stops on a conflict, how to resolve it so the fix lands in the right br7 min readgit rebase --update-refs on a stack, as covered in the earlier chapters. It also assumes you know that a branch is a pointer to a commit. Here you learn how to get a stack back to its pre-rebase state when a restack goes wrong.7 min readgit rebase --update-refs, force-push with --force-with-lease, and restack with --onto after a squash merge. The earlier chapters covered those commands. This one covers the habits that keep you from needing them in awkward situations.7 min read