I am trying to squash 3 commits.
- I clone the repository
- I checkout the branch with the commits I want to squash
- I run 'git rebase -i HEAD~3'
- I 'pick' the top commit and I 'squash the second and third one. This is all fine. On my local branch the commits have now been squashed
When I now try to 'push' this is being rejected stating 'Updates were rejected because the tip of your current branch is behind'. Now I have not made any changes to any of the files. Does anyone know how I can push this 'squash' to the remote repository?