Closed thepra closed 3 years ago
You can follow this link to recover your commit https://stackoverflow.com/a/10099285
This is a frequently recurring issue where people claim to hav lost their committed code. In git, it's actually quite difficult to lose code and in fact you would have to try to lose code once committed.
Ungit doesn't display all git nodes, some git nodes are not in display if they are are not lead by a branch.
You can always recover or revert by doing git reflog
and checkout by git sha1
I had a pending checkout before the latest local commit, I did the checkout and my local commit disappeared, losing all my changes! :( How it is possible that a local commit disappear because a checkout was made right before the latest commit?