Skip to content

Rewriting a GitHub repo #194

Answered by newren
keithlayne asked this question in Q&A
Jan 28, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Right, you'll be unable to remove refs/pull/* so the server side storage wouldn't actually shrink. refs/pull/* aren't cloned/fetched by default, so you could potentially choose to just "deal with it" and push the things that you can. Anyone that reclones would get the smaller size history, unless they also manually fetched refs/pull/. However, if there are any open pull requests at the time of the rewrite, attempting to merge them after rewriting history would cause you to combine the old and new histories (essentially ending up with two copies of all commits, one of the commits being ones that contained big high-churn files in their history). Also, anyone who fetched refs/pull/ and attem…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@keithlayne
Comment options

Answer selected by keithlayne
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants