Loading tutorials
git log --oneline output. The previous chapter covered commits and parents. Here you will see that a branch is only a label on one commit, and that this explains what rebase does to a branch2 min readgit log --graph output and know that origin/main is your local copy of the remote main branch. The chapter compares the two ways Git combines divergent work and shows how each changes the commit graph.2 min readgit log output, know that a commit stores a pointer to its parent, and have used branches and origin/main. It explains what Git does internally during a rebase. The later chapters build on that.3 min readgit log output and know what a remote branch such as origin/main is.2 min readgit add, git commit, and git log. It also assumes you know how to rebase a branch onto origin/main. Here you will learn what to do when a rebase stops on a conflict.2 min readgit log output, know that origin/main is a remote-tracking branch, and have read the earlier chapters on how rebase replays commits with new hashes. Here you will learn why that rewriting is dangerous once other people hold the old commits.2 min readgit log output and know what origin/main means. You should have already rebased a branch and seen that rebase creates new commits.2 min readgit log, know how a plain git rebase origin/main replays commits, and have a feature branch that is not yet shared with others. Interactive rebase lets you edit the list of commits before Git replays them.2 min readgit log output, know what origin/main is, and have run git rebase -i at least once. Here you will learn how to mark a correction as belonging to an earlier commit, and how to have Git fold it in for you.3 min readgit log output, know that a branch is a movable pointer to a commit, and have rebased a branch at least once. A rebase creates new commits and moves the branch pointer to them. The old commits stay in the repository for a while, so a bad rebase can almost always b2 min readgit fetch, git pull, and git push, read git log output, and know what origin/main refers to. It also assumes you have met the basic rebase from earlier chapters.2 min readgit log --graph output, know that a rebase creates new commits with new hashes, and have used git rebase origin/main. Here you will learn the three-argument form git rebase --onto, which moves a chosen range of commits to a new base.3 min readorigin/main and read a todo list from git rebase -i. It also assumes you know what a merge commit is: a commit with two parents.2 min readgit rebase, resolve a conflict with --continue, and read git log. It covers rerere, a Git feature that remembers how you resolved a conflict and applies the same fix when the conflict shows up again.2 min read