13 cards
`git bisect start`
start a session
`git bisect bad HEAD`
mark the current commit as bad
`git bisect good v1.0.0`
mark a known good commit
`git bisect run ./test.sh`
automate it (exit 0 = good; 1–127 except 125 = bad; 125 = skip the commit; any other code aborts the bisect)
`git bisect reset`
finish and return to HEAD
`git cherry-pick <hash>`
apply a single commit
`git cherry-pick A^..B`
apply the range from A to B inclusive
`git cherry-pick --no-commit <hash>`
stage only, do not commit
`git worktree add <path> <branch>`
create a second working directory
`git worktree list`
list worktrees
`git worktree remove <path>`
remove a worktree
Submodule
`.gitmodules`, requires `git submodule init && update`, clear separation
Subtree
no config file, histories are intermixed, `git subtree add/pull/push`