0

I made a big mistake. I wanted to remove all my local changes but instead of discarding them I just selected all files and removed them. I use SmartGit. How can I return that files?

1 Answers1

0

You can restore your local filesystem state to the latest change in git. Do this by "resetting" your load repository:

git reset --head HARD

I'm not familiar with SmartGit specifically, but this question covers resets in SmartGit: How to checkout and reset using smartgit?

Nikolas Stevenson-Molnar
  • 4,235
  • 1
  • 22
  • 31