Git repository is out of sync after rebase
- by Keyo
I have squashed 2 commits (A and B) into one new commit (C). The previous two commits (A and B) where removed.
I pushed these commits from my development repo to a central(bare) repository. The git-log on both repos confirms that commits A and B have been removed. The problem is when I do a pull on a third repository which already had (A and B) it now has all three commits (A, B and C).
I would have thought the pull would synchronise these changes. Do I need to checkout A~1 and then merge in the new changes? This seems like a hassle, especially in a production environment.