Most commits stay in git even when you do a hard reset. I forget how to get them since I usually note the commits before a reset, but you can find them and reapply them. I think it is quite hard to lose a commit, but I'm not real sure...
True, but anything more complex than hard reset will have you searching through very unfriendly interfaces and modifying your git commands back and forth just to get the info on what happened. Even hard reset makes me check whether the selected commit is included or not every time...
View all comments
Show parent comment
1
u/awesome-alpaca-ace Oct 17 '26
Most commits stay in git even when you do a hard reset. I forget how to get them since I usually note the commits before a reset, but you can find them and reapply them. I think it is quite hard to lose a commit, but I'm not real sure...