Loading tutorials
git log. You should also know that a commit points to its parent. Here you will learn how Git decides what a merge should contain, and why that depends on a commit you never name.6 min readgit log output. It also assumes you know what a branch is: a movable name that points at one commit. Earlier chapters covered what git merge does and how the merge base works. This chapter covers the two shapes a suc5 min readgit status and git log. It also assumes you can edit a file in a terminal or editor. Here you learn what makes Git stop a merge. Later chapters cover how to fix the conflict.5 min readgit merge. It also assumes you can open a file in a text editor. You will learn what each marker line in a conflicted file means and how to tell which side of a conflict came from which branch. You will also learn what an ext6 min readgit status and git log output. It also assumes you have seen the demo repository from the earlier chapters: two branches that each change timeout in config.txt. Here you will learn what Git records when a merge stops, 5 min readgit status and git log output. You should also know what a merge base is and what conflict markers look like. The earlier chapters cover both. Here you will follow one conflict from the first error message to the finished 5 min readgit status output. It also assumes you have seen a merge stop with a conflict, as in the earlier chapters. Here you will learn how to leave an unfinished merge safely, what Git restores when you do, and where the command can fail.5 min readgit add and git commit. It covers how to confirm that the result is correct before you commit and after you commit. A merge that finishes without errors is not necessarily a correct merge. Git only checks that the conf6 min read--ours and --theirs for these cases, and they exist at three levels: a single file, a single merge, and a whole branch history. This chapter covers all three and the mistakes that come 5 min readgit merge --abort. You should also know that a three-way merge compares two branch tips against their merge base. Here you will change how Git writes conflict markers so the base version appea5 min readgit add and git commit. It also assumes you know what HEAD and a branch are. The earlier chapters on markers and manual resolution cover these. Here you will hand the editing step to a visual mer5 min readgit merge, read conflict markers, and finish a merge by editing a file, running git add, and committing. It covers how a conflict during git rebase differs from a merge conflict.5 min readgit add and git commit. It covers the conflicts that don't fit that pattern: a file deleted on one branch and edited on the other, a file renamed in two ways, and a file Git can't merge line by line.6 min readgit merge, read conflict markers, resolve a conflict by hand, and run git rebase. The earlier chapters on those topics cover the background.5 min readgit merge --abort. It covers what to do before a conflict happens. You can't eliminate conflicts, but a few habits make them rarer and much cheaper to fix.6 min read