←back to thread

199 points elza_1111 | 3 comments | | HN request time: 0.424s | source
Show context
SillyUsername ◴[] No.44452402[source]
Git never forgets, this isn't really a shocking revelation.
replies(3): >>44452453 #>>44452484 #>>44452485 #
1. tossandthrow ◴[] No.44452485[source]
Git is not point in time backups. It is versioning.

You are free to organize your version history as you fit, and you can certainly rewrite history.

The only issue you might have is signed commits from collaborators, that you can not resign.

replies(2): >>44452668 #>>44452672 #
2. lloeki ◴[] No.44452668[source]
> and you can certainly rewrite history.

But you can't coerce everyone in the world to remove all traces of the alternate history that was a thing before being rewritten.

So while you can make git forget something in your local repo, you can't make git forget across the decentralised set of repos, which is part of git's core design.

So in that sense, yes, git never forgets, by design.

3. ◴[] No.44452672[source]