Fr0sT.Brutal 900 Posted August 17, 2020 On 8/15/2020 at 1:52 PM, Anders Melander said: Git is a powerful tool but when you shoot yourself in the foot with it it leaves a rather large hole. I would argue on that. Several times I accidentally got my commits overridden and restored them undamaged with git reflog. Share this post Link to post
Anders Melander 1784 Posted August 17, 2020 2 minutes ago, Fr0sT.Brutal said: I would argue on that. Several times I accidentally got my commits overridden and restored them undamaged with git reflog. I think you just proved my point there. I'm not saying that you can't get out of trouble. I'm saying it's rather easy to get into trouble. The challenge is figuring out how to do that. https://ohshitgit.com/ Share this post Link to post
Fr0sT.Brutal 900 Posted August 17, 2020 4 minutes ago, Anders Melander said: I'm not saying that you can't get out of trouble. I'm saying it's rather easy to get into trouble Well, that cases were my mistakes. Unmarked heads disappear from history when checking out another branch. Will other VCS allow to recover from this situation? Of course Git is too brutal sometimes, just like any serious *nix tool. But it does its best to warn you when you're about to shoot yourself in the leg 😄 Share this post Link to post
Vincent Parrett 750 Posted August 17, 2020 11 minutes ago, Fr0sT.Brutal said: But it does its best to warn you when you're about to shoot yourself in the leg There's a reason this site exists https://git-man-page-generator.lokaltog.net/ 😉 3 Share this post Link to post
Lars Fosdal 1792 Posted August 17, 2020 7 minutes ago, Vincent Parrett said: There's a reason this site exists https://git-man-page-generator.lokaltog.net/ 😉 Oh Emm Gee - that was scary 😄 1 Share this post Link to post