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.
Displays the difference between two branches.
Git, Branch · Apr 13, 2021
Creates and switches to a new branch, optionally setting up a remote tracking branch.
Git, Branch · Apr 13, 2021
Discards all untracked changes to the current branch.
Git, Branch · Apr 13, 2021