-2

I had some changes on master and then I created a branch where I added all my changes. Then, I went back to master to remove the changes that I did. I entered git checkout . which unstaged all of my changes on master and the branch.

Any ideas?

double-beep
  • 5,031
  • 17
  • 33
  • 41
Karam
  • 336
  • 5
  • 18

1 Answers1

1

Unfortunately, no, you can't "revert" the git checkout . command you entered. Your changes are gone, sorry :(.

Please check git-undoing-things for more information.

double-beep
  • 5,031
  • 17
  • 33
  • 41