0

I do a

git reset --hard HEAD@{1}

But I removed some things wrongly. I try solve it

git fsck −−lost-found

But it no found the "revert"

Thanks...

user3854612
  • 127
  • 1
  • 1
  • 7
  • git reflog. Find the commit you reverted and reapply it. – gran_profaci Nov 12 '15 at 20:04
  • `git revert` doesn't have a `--hard`: do you mean `git reset`? Either way, search, as both questions have been answered. – torek Nov 12 '15 at 20:31
  • When you `reset --hard` you throw away three things. Commits, the index, and the working directory. Working directory is gone forever, index is difficult to recover, commits are trivial. Edit your question with additional information about what you are trying to recover. – Andrew C Nov 12 '15 at 21:13
  • Yes, I do a commit with the wrong changes, and after I also made a wrong reset. With git reflog @gran_profaci I find the reset and reapply it... Thanks – user3854612 Nov 13 '15 at 11:35

0 Answers0