Created
April 18, 2017 03:31
-
-
Save samgooi4189/a46be3dd2e9c41a514e49648c8b6ebc5 to your computer and use it in GitHub Desktop.
Clear git changes and unstaged files
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
# reset to HEAD | |
git reset HEAD --hard | |
# will remove unstaged files without removing gitignore file | |
git clean -fd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment