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.
Initializes a new git repository, setting up all the configuration files needed by git.
Git, Repository · Apr 13, 2021
Discards all uncommitted changes to the current branch.
Git, Branch · Apr 13, 2021
Fetches the latest changes from the remote.
Git, Repository · Apr 13, 2021
Rewinds the current branch by a given number of commits.
Git, Branch · Apr 13, 2021
Rewinds the current branch by a given number of commits.
Git, Branch · Apr 13, 2021
Creates a fixup commit that can be autosquashed in the next rebase.
Git, Commit · Apr 13, 2021
Displays the difference between two branches.
Git, Branch · Apr 13, 2021