No, the changes were not โrecoverableโ, as they could be captured by one team. Yes, the changes were found in git fsck, as well as 100 other old changes that I had to sort. Ick, but better than a total loss.
It is important to note: - As soon as you do "git add", the commit is written to the node - things cannot be completely lost from this point - "git rebase abort" is not like a transaction cancellation, it is more like "git reset --hard", which will delete all new files that were added during this reboot. git does not track what changes you made during your reboot, so it cannot undo them or push them back. During rebase, you are in a zone without a person, and a rebase interrupt is a git reset back to the previous commit node.
To summarize the problem, I made several changes and organized them into separate commits, 1 function per commit. Halfway, I realized that I missed some files on an earlier (unchecked) commit. I made a git tag, started an interactive reboot, made a git pop-up message, added the missing files to the previous commit, and realized that I added new files to the wrong commit node. Then I did git rebase-abort, which deleted these new files and was usually terrible.
TL; DR: do not add new files during the interactive redirection without their first support - if you cancel rebase, your files will be (mostly) lost and will not be easily restored.
chaqke Oct 27 '11 at 19:36 2011-10-27 19:36
source share