Created
September 5, 2018 06:51
-
-
Save cuonghuynh/dcbce40be59a538d3a12fe6d9efe0769 to your computer and use it in GitHub Desktop.
Git discard your changes not staged on local by command
This file contains hidden or 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
# check status | |
> git status | |
Changes not staged for commit: | |
(use "git add <file>..." to update what will be committed) | |
(use "git checkout -- <file>..." to discard changes in working directory) | |
modified: hello.html | |
# discard changes | |
> git checkout hello.html | |
# check status | |
> git status |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment