Created
February 27, 2016 09:09
-
-
Save milki/012841b1ef953d09b776 to your computer and use it in GitHub Desktop.
git reset HEAD --hard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
milki@dashi:/tmp/docu$ touch a; git add a; git status | |
On branch master | |
Changes to be committed: | |
(use "git reset HEAD <file>..." to unstage) | |
new file: a | |
milki@dashi:/tmp/docu$ git reset HEAD --hard; git status | |
HEAD is now at 49c9f9d init | |
On branch master | |
nothing to commit, working directory clean |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
milki@dashi:/tmp/docu$ git --version
git version 2.6.2