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, Branch
Creates and switches to a new branch, optionally setting up a remote tracking branch.
Git, Repository
Deletes a submodule from the repository.
Git, Branch
Discards all untracked changes to the current branch.
Git, Branch
Rebases the current branch onto another branch.
Git, Branch
Renames a local branch.
Git, Branch
Switches to an existing branch.
Git, Branch
Switches back to the last branch.
Git, Branch
Prints the current status of the working tree.
Git, Commit
Creates a new commit by the specified author.
Git, Commit
Creates a new commit containing the staged changes.
Git, Commit
Creates an empty commit.
Git, Configuration
Opens the git configuration file in the git text editor.
Git, Configuration
Configures the text editor used by git.
Git, Commit
Adds files to the staging area.
Git, Commit
Removes files from the staging area.