0

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?

Suraj
  • 2,263
  • 9
  • 33
  • 72

1 Answers1

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

Community
  • 1
  • 1
Max Williams
  • 31,680
  • 30
  • 120
  • 192