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.
Git, Repository
Prints a list of all local branches sorted by date.
Git, Repository
Prints a list of all merged local branches.
Git, Branch
Merging a branch is a pretty common Git operation. Learn how fast-forward mode works and its benefits, so you can decide if it's a good fit for you and your team.
Git, Repository
Deletes all local merged branches.
Git, Repository
Prints a list of all local branches.
Git, Repository
Merges a branch into the current branch, creating a merge commit.
Git, Branch
Forces an update of the remote branch after rewriting the history locally.
Git, Repository
Merges a branch into the current branch.
Git, Branch
Moves local commits from the master
branch to a new branch.
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.
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.
Git, Repository
Resets the local master
branch to match the one on the remote.