undo a git revert



i added some project files to the git by accident
then commited
then i did ‘git revert HEAD’
but now i’ve lost everything that was in that commit
is there a way to go back to that commit?

thankfully the files are all on the server
so i’m thinking simply to delete the folder
and clone it again



i’m not sure I understand you correctly, but see here: http://stackoverflow.com/questions/3662543/is-there-any-way-to-undo-the-effects-of-git-revert-head

Basically, if I ever have questions about git (and after having read through gitref.org, the github help pages, and some chapters on progit.org), I go to stackoverflow and search for my problem - in >90% of the cases the problem’s been solved already.