Loading tutorials
git add, git commit, git branch, and git switch (or git checkout) without looking them up. You should know that a commit is a snapshot with a parent and a unique hash, and you should be able to read git log and git status output in a terminal.3 min readgit stash push, git stash list, and git stash pop from the previous chapter. It also assumes you know the difference between tracked and untracked files. Here you will cover the options that matter once your work gets less tidy: new files, partial stashes, labels,3 min readgit stash push and git stash pop, and that you know a commit stores a snapshot, a message, and parent pointers. You will inspect a stash with plumbing commands, see why it behaves like a branch of commits, and recover a stash you dropped by mistake.3 min readgit cherry-pick copies the change introduced by an existing commit and applies it as a new commit on your current branch. This chapter assumes you know how to add, commit, and switch branches, and that a commit is a snapshot with a parent and a unique hash. It also assumes you know the difference 3 min readgit cherry-pick <commit> to copy one commit onto your current branch, and that you can read git log output. Here you will learn the four options that change how a pick behaves: recording the source commit, skipping the automatic commit, picking several co3 min readgit cherry-pick <commit> on a clean branch, read git status output, and edit a file with conflict markers from a merge. Here you will learn why a cherry-pick conflicts and how to finish, skip, or abort one.3 min readgit bisect. It assumes you can read git log output and know that a commit is a snapshot with a parent and a hash. The next chapter shows the commands. Here you learn why the method is fast and when it can mislead you.4 min readgit bisect by hand: start, good, bad, and reset. It also assumes you can write a short shell script and know that a command's exit code of 0 means success. Here you hand the good/bad decisions to a script, so Git can search history without you.3 min readgit bisect run script. You should also know that good and bad mark commits, and that git bisect reset ends a session. Here you will handle commits that cannot be tested, read the record of a session, and replay that record.3 min read