title: Updates were rejected because the remote contains work that you do
body: <p>I'm trying to move a local repository to bitbucket, I'm following this <a href="https://confluence.atlassian.com/bitbucketserver/importing-code-from-an-existing-project-776640909.html" rel="nofollow noreferrer">tutorial</a> but when I do </p>
  
  <pre><code>git push --all bitbucket 
  </code></pre>
  
  <p>I got the following meessage error:</p>
  
  <pre><code>To https://bitbucket.org/growtec/offshore.git
   ! [rejected]        Leonardo -&gt; Leonardo (fetch first)
   ! [rejected]        master -&gt; master (fetch first)
  error: failed to push some refs to 'https://lrslima@bitbucket.org/growtec/offshore.git'
  hint: Updates were rejected because the remote contains work that you do
  hint: not have locally. This is usually caused by another repository pushing
  hint: to the same ref. You may want to first integrate the remote changes
  hint: (e.g., 'git pull ...') before pushing again.
  hint: See the 'Note about fast-forwards' in 'git push --help' for details.
  </code></pre>
  
  <p>I'm on master branch and I already did a <code>git pull</code> but the output was the Everything up-to-date. </p>
  
  <p>I saw this <a href="https://stackoverflow.com/questions/18328800/github-updates-were-rejected-because-the-remote-contains-work-that-you-do-not-h">question</a> but it didn't work for me</p>