News for hackers. Stuff that matters.
Re:Linux Crisis Tools by theptip on Sunday March 24, 2024 @01:36AM (#39805344)
Git is a lot less scary when you understand the reflog; commit or stash your local changes and then you can rebase without fear of losing anything. (As a bonus tip, place “mybranch.bak” branches as pointers to your pre-rebase commit sha to avoid having to dig around in the reflog at all.)

I would never ridicule anyone for your approach, just gently encourage them to spend a few mins to grok the ‘git reflog’ command.

Re:Linux Crisis Tools by ansgri on Sunday March 24, 2024 @05:28AM (#39806014)
Then submodules enter the picture. I’m comfortable with reflog, but haven’t fully grokked submodules yet, easier to reclone.