Undo changes with Git
Return to the last committed state
git reset --hard HEAD
To restore one file
git checkout HEAD [name_of_file]
To clear untracked files and directories.
git clean -df
Written by Zakaria Braksa
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#