title: Trying to push to GitHub
body: <p>There is an existing repo on GitHub. I have then coded a project locally, and am trying to <code>push</code> to the remote branch <code>my_branch</code>.</p>
  
  <p>I get the following:</p>
  
  <pre><code>$ git push -u origin my_branch
  To github.com:xxxx/richard-m-xxxx.git
   ! [rejected]        my_branch -&gt; my_branch (non-fast-forward)
  error: failed to push some refs to 'git@github.com:xxxx/richard-m-xxxx.git'
  hint: Updates were rejected because the tip of your current branch is behind
  hint: its remote counterpart. Integrate the remote changes (e.g.
  hint: 'git pull ...') before pushing again.
  hint: See the 'Note about fast-forwards' in 'git push --help' for details.
  </code></pre>
  
  <p>It says that my local branch (<code>my_branch</code>) is behind the remote branch. I have tried <code>git pull</code>, but it looks up to date.</p>
  
  <pre><code>$ git pull
  There is no tracking information for the current branch.
  Please specify which branch you want to merge with.
  See git-pull(1) for details.
  
      git pull &lt;remote&gt; &lt;branch&gt;
  
  If you wish to set tracking information for this branch you can do so with:
  
      git branch --set-upstream-to=origin/&lt;branch&gt; my_branch
  </code></pre>
  
  <p>Please can someone advise me on the steps to <code>push</code> my project to the remote branch <code>my_branch</code> please?</p>
  
  <p>Thank you.</p>
  
  <p>Update</p>
  
  <p>I also try the following unsuccessfully:</p>
  
  <pre><code>$ git pull origin my_branch
  From github.com:xxxx/richard-m-xxxx
   * branch            my_branch  -&gt; FETCH_HEAD
  fatal: refusing to merge unrelated histories
  </code></pre>
  
  <p>Then again:</p>
  
  <pre><code>$ git push origin my_branch
  To github.com:xxxx/richard-m-xxxx.git
   ! [rejected]        my_branch -&gt; my_branch (non-fast-forward)
  error: failed to push some refs to 'git@github.com:xxxx/richard-m-xxxx.git'
  hint: Updates were rejected because the tip of your current branch is behind
  hint: its remote counterpart. Integrate the remote changes (e.g.
  hint: 'git pull ...') before pushing again.
  hint: See the 'Note about fast-forwards' in 'git push --help' for details.
  </code></pre>