this post was submitted on 02 Sep 2024
55 points (93.7% liked)
Git
3661 readers
4 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
- Follow programming.dev rules
- Be excellent to each other, no hostility towards users for any reason
- 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 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
If you’re using reset with uncommitted changes and you’re not intentionally throwing them away, you’re doing something wrong.
git reset —hard
means “fuck everything, set the state to X”. I only ever use it when I want to throw away the current state.Well yeah I think the point is you're human and you might make a mistake.
~~Waddyamean "that's what backups are for"~~ Sorry, wrong community
Not many people back up continuously, so this is still useful.