I was going to do more work on a feature and before coding i ran git pull --rebase upstream master
. Then ran git push origin feature-branch
; this resulted in one of those 'fast-forward' errors in which I then ran git pull origin feature-branch
. Following that I fixed a merge conflict and ran git push origin feature-branch
again. Now my pr from feature-branch
to master
is polluted with other's commits. I noticed this questions was asked previously but never answered.
Can someone explain what I did wrong and maybe how to fix it?