• Ethan@programming.dev
      link
      fedilink
      English
      arrow-up
      6
      ·
      2 months ago

      Using git reset --keep would just make more work since I’ll have to throw away uncommitted changes anyways. Removing uncommitted changes is kind of the whole point, it is called ‘reset’ after all. If I want to preserve uncommitted changes, I’ll either stash them or commit them to a temporary branch. That has the added benefit of adding those changes to the reflog so if I screw up later I’ll be able to recover them.

    • MyNameIsRichard
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      edit-2
      2 months ago

      Waddyamean “that’s what backups are for” Sorry, wrong community