Reset all git changes one line

By October 8, 2017Linux, Tips

Reset all your git changes with this one liner.

git stash -u - Removes all changes

Other options if you want something less nuclear…

git checkout . - Removes Unstaged Tracked files ONLY
git clean -f - Removes Unstaged UnTracked files ONLY 
git reset --hard - Removes Staged Tracked and UnStaged Tracked files ONLY

Leave a Reply

Notify of