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?

122

u/rwilcox Oct 09 '26

The newbie: “just force push”

The average: “no no blah blah never immutable blah blah blah”

The master: “just force push (not main)”

17

u/azhder Oct 09 '26

*The main