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

Show parent comments

54

u/jaerie Oct 09 '26

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

57

u/whitethunder9 Oct 09 '26

If there are changes that didn’t come from you on remote then force with lease won’t force push over them

4

u/Recol Oct 09 '26

So what you are saying remove the argument as my changes will always overrule my colleagues?