Discard uncommitted or untracked changes in Git
Made some changes you don't want to keep? Learn how to discard uncommitted or untracked changes in Git.
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.
Made some changes you don't want to keep? Learn how to discard uncommitted or untracked changes in Git.
View differences between staged or unstaged changes and the last commit in Git.
Displays the difference between two branches.
Creates and switches to a new branch, optionally setting up a remote tracking branch.
Rebases the current branch onto another branch.
Switches to an existing branch.
Switches back to the last branch.