-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
squash gh-pages
branch
#1407
Comments
@marioidival I saw you added a +1 - does that mean you squashed the branch? Can I make it easier somehow? |
bump - who should I talk to about this? |
Actually it looks like the |
Pushed, I believe, the squashed version of gh-pages. Seems to have cut the size down to ~4.7MB on a fresh clone. |
Thank you! |
That worked like a charm, thank you so much!
|
Currently,
rust-by-example
takes up over 146 MB just for the git history. It would be nice to reduce this so contributors to rust-lang/rust don't have to download as much data (rust-lang/rust#76653 (comment)).You can squash the branch with (https://stackoverflow.com/questions/1657017/how-to-squash-all-git-commits-into-one/1661283#1661283)
git checkout gh-pages git update-ref -d refs/heads/gh-pages git commit -m "Redirect to doc.rust-lang.org"
then squash the history with
git gc --aggressive
. I verified locally that this reduces the size of .git to 84 MB. I'm not sure how to get github to run gc, I think you may have to wait for them to do it automatically (https://stackoverflow.com/a/9138899/7669110).The text was updated successfully, but these errors were encountered: