Git 2 cheatsheet
Git 2: Stash and history
8 common Git 2 tasks.
Copy a commit to this branch
Apply the changes of one commit onto the current branch.
git cherry-pick abc1234
Create an annotated tag
Tag the current commit, for example for a release.
git tag -a v1.0.0 -m "Release 1.0.0"
Find commits that changed a string
List commits whose changes add or remove the given text.
git log -S"functionName" --oneline
Find the commit that broke something
Start a binary search through history. Mark commits with git bisect good and git bisect bad.
git bisect start