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 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, 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.
Git, Repository
Clones missing submodules and checks out commits.
Git, Repository
Deletes a remote branch.
Git, Repository
Pushes the current branch's changes to the remote.
Git, Repository
Prints all commits by the specified author.
Git, Repository
Clones an existing repository, creating a local copy of it.
Git, Repository
Sets up a commit message template for the current repository.
Git, Configuration
Configures user information for git.
Git, Repository
Optimizes the local repository.
Git, Repository
Pulls all submodules from their respective remotes.
Git, Repository
Displays the URL of the remote repository.