r/programming • • Oct 08 '26

How big is a Git commit?

https://ratfactor.com/cards/git-commit-size
159 Upvotes

46 comments sorted by

View all comments

185

u/nmopqrs_io Oct 08 '26

This is why I always just amend my first commit and re-push it with force, saves on disk space.
If you’re not using force, are you really using git?

54

u/jaerie Oct 09 '26

I use --force-with-lease. No idea what it does but it feels safer

4

u/mr_birkenblatt Oct 09 '26

I do --force-with-leash it makes git run faster