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
Merges a branch into the current branch.
Git, Configuration
Configures the repository to automatically create upstream branches on push.
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.
Git, Commit
Ever needed to create a git commit with a different date? Here's a quick and easy way to do it.
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.
Git, Repository
Prints a short summary of all commits.
Uses a binary search algorithm and a given script to find which commit in history introduced a bug.
Git, Repository
Clones missing submodules and checks out commits.