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,423
  • 12
  • 39
  • 75

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
  • 32,435
  • 31
  • 130
  • 197