Recovery after accidental `git am` and `git am --abort`
Since I 'm heavily using ap as alias for git add --patch, I accidentally
typed git am instead. OK, I thought, I hope I can just git am --abort.
But to my horror, it turns out that at some point, git am, without any
warnings, does a hard reset on your uncommited and unstaged work. Provided
that before my ap I'm most likely to have unstaged changes, this typo
always means loss of data.
Actually it happened to me few times, but now it really hurt, since there
was quite a lot of work.
Can I recover my unstaged changes after this?
No comments:
Post a Comment