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.
Moves local commits from the
masterbranch 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.
Prints all the branches containing a specific commit.
Prints all the branches not containing a specific commit.
Deletes all detached branches.
Merges a branch into the current branch.
Resets the local
masterbranch to match the one on the remote.
Prints a short summary of all commits.
View git's reference logs. This is especially useful for finding references that don't show up in commit history.
Learn how to add multiple authors to a git commit with this quick and easy tip.
Uses a binary search algorithm and a given script to find which commit in history introduced a bug.
Deletes a remote branch.
Uses a binary search algorithm to manually find which commit in history introduced a bug.
Updates the last commit's message without changing its contents.