Missing after incomplete "git svn dcommit" ends

I miss some important commits after my computer lost power in the middle of a git svn dcommit operation, and I'm not sure how to get them back. "git log" doesn't show commits, any ideas?

+4
source share
2 answers

Git tracks everything you do in the repository, in the reflog . You can use git reflog to view the latest commits and resurrect them from there.

I found a blog entry called Git reflog: there are no commits left that describes what to do to restore these commits.

+5
source

It is a good idea to make "git log" and / or "git branch -v" before doing anything that can change branches, for example "git svn dcommit". You can always scroll the console and copy / paste commit identifiers in case of confusion.

+1
source

All Articles