Git commits are duplicated in the same branch after doing a rebase
问题 I understand the scenario presented in Pro Git about The Perils of Rebasing. The author basically tells you how to avoid duplicated commits: Do not rebase commits that you have pushed to a public repository. I am going to tell you my particular situation because I think it does not exactly fit the Pro Git scenario and I still end up with duplicated commits. Let\'s say I have two remote branches with their local counterparts: origin/master origin/dev | | master dev All four branches contains