This may be a little vaque, but I am completely stunned by this problem. I am working, with a friend, on one branch. Sometimes, when we accumulate a lot of "pointless" commits like "fixed typo" or whatever, he squashes them and then pushes them with --force
flag.
Next, I pull those changes and try to commit my things. When I try to push, I am getting a lot of old commits to push also. I understand that they are there because the dissapeared from the repo. But this is a problem, since after this, he needs to solve a lot of conflicts.
What can we do with this?