Reputation: 2563
In my app I want to revert all the changes which I have done. I have modified few files, deleted a couple of files and added a few files at the same time.
All these changes are untracked. How can I revert everything?
Upvotes: 0
Views: 383
Reputation: 32945
git reset --hard HEAD
will revert all the changes to tracked files. To remove untracked files, see this post for various situations/options:
How to remove local (untracked) files from the current Git working tree?
Upvotes: 3