Created
March 9, 2017 13:24
-
-
Save delacruz-dev/e72accd6175271a7ea8317661e91db9d to your computer and use it in GitHub Desktop.
Git Tip: Reset unstaged changes and 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
# Revert changes to modified files. | |
git reset --hard | |
# Remove all untracked files and directories. (`-f` is `force`, `-d` is `remove directories`) | |
git clean -fd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
git clean -df
This one worked for me. This removes all unstaged changes in one go.