| ▲ | thibaut_barrere 5 hours ago | |||||||||||||
PSA: I’m not terrified of rebase, yet it’s good to know this: https://docs.github.com/en/get-started/using-git/about-git-r... > Warning - Because changing your commit history can make things difficult for everyone else using the repository, it's considered bad practice to rebase commits when you've already pushed to a repository. A similar warning is in Atlassian docs. | ||||||||||||||
| ▲ | ongy 5 hours ago | parent | next [-] | |||||||||||||
I think a large part of this is about how a branch is expected to be used. Branches that people are expected to track (i.e. pull from or merge into their regularly) should never rebase/force-push. Branches that are short-lived or only exist to represent some state can do so quite often. | ||||||||||||||
| ||||||||||||||
| ▲ | mr_mitm 3 hours ago | parent | prev [-] | |||||||||||||
Is there a reason why that recommendation cannot be changed to "don't ever force push unless you are certain no one else has fetched this branch"? | ||||||||||||||