You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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 usegit push -f
while publishing to thegh-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-pages
withgit push -f origin gh-pages
IBM Organization or Company you are part of
IBM Software design
Code of Conduct
The text was updated successfully, but these errors were encountered: