←back to thread

199 points elza_1111 | 1 comments | | HN request time: 0.345s | source
Show context
SillyUsername ◴[] No.44452402[source]
Git never forgets, this isn't really a shocking revelation.
replies(3): >>44452453 #>>44452484 #>>44452485 #
tux3 ◴[] No.44452484[source]
Git does forget, it has a gc mechanism specifically for forgetting.

GitHub can't use the native git gc, and apparently doesn't have their own fork-aware and weird-cross-repo-merge-aware gc, so they might just not have built a way to track which commits are dangling.

But that's not obvious at all.

replies(2): >>44452600 #>>44454335 #
1. SillyUsername ◴[] No.44454335[source]
Ah right, so forking the codebase, then deleting the original repo forces git to forget all copies. Gotcha thanks for the enlightenment.