logoalt Hacker News

codethieftoday at 12:28 PM2 repliesview on HN

> (Related lesson from my 10 years employed by GitHub: they almost never do the git gc you’d expect to remove commits so once you push a commit: it’s likely there forever and identifiable by that same hash from anywhere in the fork network. This can be bad/scary so be aware).

Oh wow. Is there a way to trigger GC manually?


Replies

OneDeuxTriSeiGotoday at 1:31 PM

For github itself the answer is "contact them if you think you pushed a secret".

For git. You can run `git maintenance run` or the legacy command `git gc`.

mikemcquaidtoday at 12:50 PM

Unsure, no longer there. I think maybe just “contact support”.