Comments (3)

Bitbucket rejects your push, because it would delete history on our side. What happened is that your local clone is not in sync with your Bitbucket repository. Maybe someone else has pushed to it, or maybe you rebased locally. Pull first and then push again.

Have a look at the documentation it suggests. It explains these scenarios.

Alternatively you can have a look at some of the excellent books that are out there (the Git Community Book http://book.git-scm.com/ is very good).