Okay, I obviously have a little problem here understanding what I have to do in order to get this right.
I have pushed a lot of commits to the remote master which I'd like to squash now. In order to do so I've started a git rebase -i HEAD~20
session and used squash
in order to squash some commits into one.
After some conflicts which I was able to resolve I was left with a "shortened" version of my local branch - but at this point I don't know how to get this onto the remote branch.
If I run git status
it will tell me that the local and master branch differ in 1 and 11 commits.
If I'd run git pull
at this point the whole rebase
action gets undone and I am back to where I started.
So essentially I went from something like:
a b
o-->o-->o-->o-->o-->o
\ /
o-->o-->o
to
a b
o-->o
but only locally. Can I squash the commits on the remote if I push local?