DEV Community

Discussion on: How to (almost) lose data with git rebase

Collapse
 
nvahalik profile image
Nick Vahalik

I completely forgot about the reflog!

83b93b01 HEAD@{9}: rebase -i (abort): updating HEAD
54c6356c HEAD@{10}: commit (amend): TKT-181 - Add in service.
61472e94 HEAD@{11}: rebase -i: fast-forward
d87ad06c HEAD@{12}: rebase -i (start): checkout d87ad06c1365ef

You're right, the files I added are there:

git show --stat of that commit shows the files are indeed there.

Thank you!

Collapse
 
jessekphillips profile image
Jesse Phillips

Yeah, when you make a commit it is really hard to lose your work with Git. Know where to look or that something is missing can be hard though.