Skip to content
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

The .git directory is 5GB big, could be much smaller #11712

Open
2 tasks done
rodet opened this issue Apr 11, 2024 · 0 comments
Open
2 tasks done

The .git directory is 5GB big, could be much smaller #11712

rodet opened this issue Apr 11, 2024 · 0 comments
Labels
contribution Issues to track contributions from outside contributors

Comments

@rodet
Copy link

rodet commented Apr 11, 2024

Contribution type

Other

Contribution type (other)

I was cleaning out my code directory and noticed Carbon for IBM.com was in the bigger segment (5.4GB disk usage). It turns out this is the .git directory. As history is not needed on gh-pages, so it might be wise to use git push -f while publishing to the gh-pages branch. This would get rid of more than 12000 extraneous commits (the branch current directory size is around 500MB).

Intent

It would make cloning and using the repository faster, and consume less space on the developer systems.

Solution

Replace all instances of git push origin gh-pageswith git push -f origin gh-pages

IBM Organization or Company you are part of

IBM Software design

Code of Conduct

@rodet rodet added the contribution Issues to track contributions from outside contributors label Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution Issues to track contributions from outside contributors
Projects
Status: No status
Development

No branches or pull requests

1 participant