Re:Nobody Cares About Your Git History
by kenoyer130 on Friday January 26, 2024 @07:56AM
(#39142102)
I don't understand why this causes so much confusion and conversation.
If you are working with others then a force push is off the table. The only time you force push is to fix a catastrophic error. Forget it exists.
When working locally please rebase LOCALLY and clean up your commits before pushing an MR. No one wants to see fix 1, fix 3, rollback etc. Plus team environments usually have strict commit templates linked to Jira tasks etc.
Rebase -i is your friend.
I think people for some reason struggle to understand their local git repo versus the actual shared git repo everyone is using.
[ Parent
| on HN ]
There are no comments on this comment yet.