Reset all git changes one line

By October 8, 2017Linux, Tips

Reset all your git changes with this one liner.

[raw] git stash -u – Removes all changes
[/raw]

Other options if you want something less nuclear…
[raw] 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
[/raw]

Leave a Reply