Possible Duplicate:
Recover from git reset --hard?
I first used git add ., but it added some files I don't want to include in the repository.
So I ran git reset --hard HEAD before committing the changes. Is there a way to get these changes back?
Possible Duplicate:
Recover from git reset --hard?
I first used git add ., but it added some files I don't want to include in the repository.
So I ran git reset --hard HEAD before committing the changes. Is there a way to get these changes back?
You don't. That's why I always recommend to use
git stash -u
to get the same effect but you can undo that action.
