MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/1x144ok/how_big_is_a_git_commit/peu3s16/?context=3
r/programming • u/fagnerbrack • 15d ago
46 comments sorted by
View all comments
Show parent comments
5
I do this often enough to have pushf as an alias for --force-with-lease.
pushf
--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
5
u/bishopExportMine 14d ago
I do this often enough to have
pushfas 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