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?
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?
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?