Hacker News new | ask | show | jobs
by stratos123 19 days ago
Why do you call it destructive? It rewrites history only locally and reversibly (the disappeared commit is still in reflog and can be recovered with another reset) and also doesn't destroy uncommitted changes, so it's quite safe. You can only lose data with it by resetting an unpushed commit and then waiting long enough to let the unreferenced commit be garbage collected.
1 comments

Commit history is data. I might not realize what happened until the gc happens.