title: Getting an error pushing to github - Updates were rejected because a pushed branch tip is behind its remote
body: <p>I am having a problem pushing to a different heroku remote.</p>
  
  <p>To check myself I renamed my entire project directory to _backup and then:</p>
  
  <pre><code>git clone account/repo_name
  
  git remote add repo2 git@heroku.com:repo2.git
  
  git push repo2 branch_abc:master
  </code></pre>
  
  <p>But I am still getting </p>
  
  <pre><code>hint: Updates were rejected because a pushed branch tip is behind its remote
  hint: counterpart. Check out this branch and merge 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 have tried several SO questions and answers but not worked for me, still getting the error regardless.</p>