git subtree push --squash does not squash
问题 I am using git subtree to organize my git repositories. Let's say I have a main repository called repo and a library called lib . I successfully "imported" the lib repository by squashing its history. I would now like to contribute back to lib by squashing the history too. This does not seem to work: I specify the --squash option to git subtree push but when looking at the history I still send all the commits. How to reproduce Here is a script showing the minimal commands needed to reproduce