Updates were rejected because the tip of your current branch is behind


#1

Hi!
I’m having trouble with my latest builds. It says
Updates were rejected because the tip of your current branch is behind
Probably the reason for that is the fact that I have forced one commit in order to change it’s message with
git push --force origin master
Now each new commit get’s same error message. Do you know how to fix that?


#2

Sorry about that! Is this going on for a public project? If so, could you please post the URL of a build where this is happening?

If this is a private project, please open a support ticket—and we’ll get your source cache cleared.

Sorry again for the trouble.


#3

It was totally my fault, I did change commit message with --force but after successful build it should be pushed to heroku. On heroku it was still behind current branch so what I had to do was pushing changes to heroku and after all it started to build successfully.


#4