this post was submitted on 02 Sep 2024
56 points (93.8% liked)

Git

2903 readers
1 users here now

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

Resources

Rules

  1. Follow programming.dev rules
  2. Be excellent to each other, no hostility towards users for any reason
  3. No spam of tools/companies/advertisements. It’s OK to post your own stuff part of the time, but the primary use of the community should not be self-promotion.

Git Logo by Jason Long is licensed under the Creative Commons Attribution 3.0 Unported License.

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] FizzyOrange 5 points 2 months ago (3 children)

Well yeah I think the point is you're human and you might make a mistake.

[–] firelizzard 6 points 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.

[–] [email protected] 5 points 2 months ago

Let me live with my mistakes

[–] [email protected] 0 points 2 months ago* (last edited 2 months ago) (1 children)

~~Waddyamean "that's what backups are for"~~ Sorry, wrong community

[–] FizzyOrange 3 points 2 months ago

Not many people back up continuously, so this is still useful.