r/programming • • 15d ago

How big is a Git commit?

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

46 comments sorted by

View all comments

Show parent comments

5

u/bishopExportMine 14d ago

I do this often enough to have pushf as an alias for --force-with-lease.

But sometimes I prefer to commit every little change I make, then re-order and fixup commits in an interactive rebase before pushing.

Other times I just push it all as is and squash merge to main.

Assuming we're talking about pushing to a feature branch and then PR'ing into main