The Git snippet collection contains a variety of short tips and tricks for all currently maintained versions of git. It includes most commonly-used commands and covers various use-cases in the form of simplified documentation, complete with multiple examples.
Prints a list of all commits that manipulated a given string.
Learn how to add multiple authors to a git commit with this quick and easy tip.
Merges a branch into the current branch.
Displays a list of all stashes.
Moves local commits from the
master branch to a new branch.
Saves the current state of the working directory and index into a new stash.
Prints a summary of changes between two given commits.
View git's reference logs. This is especially useful for finding references that don't show up in commit history.
Uses a binary search algorithm and a given script to find which commit in history introduced a bug.
Prints all the branches containing a specific commit.
Prints all the branches not containing a specific commit.
Deletes all detached branches.
Uses a binary search algorithm to manually find which commit in history introduced a bug.
Resets the local
master branch to match the one on the remote.
Prints a short summary of all commits.