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.
Git, Github
Learn how to add multiple authors to a git commit with this quick and easy tip.
Git, Repository
Merges a branch into the current branch.
Git, Repository
Displays a list of all stashes.
Git, Branch
Moves local commits from the master
branch to a new branch.
Git, Repository
Saves the current state of the working directory and index into a new stash.
Git, Repository
Prints a summary of changes between two given commits.
Git, Repository
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.
Git, Branch
Prints all the branches containing a specific commit.
Git, Branch
Prints all the branches not containing a specific commit.
Git, Repository
Deletes all detached branches.
Uses a binary search algorithm to manually find which commit in history introduced a bug.
Git, Repository
Resets the local master
branch to match the one on the remote.
Git, Repository
Prints a short summary of all commits.