title: Working with multiple remotes in git: "Your branch is ahead of "origin/master" by X commits.."
body: <p>We have a project with two developers where we have one remote repository that we have both cloned locally and where we push our work.</p>
  
  <p>After pushing changes, we go to another server (let´s call it S), where the actual magic happens ie. production. Here we have to pull the changes of course from the previously mentioned repo.</p>
  
  <p>For reasons we have different remote repos (alt for me and origin for my friend) so when I want my remote changes to update in production I use <code>git pull alt master</code> there is a notice that states:</p>
  
  <p><code>"Your branch is ahead of "origin/master" by X commits. Use "git push" to publish your local commits."</code></p>
  
  <p>What does this mean? Isn´t the actual advice that my friend needs to use 'git pull origin master' in order to update it? I have no writing permissions to origin/master so doesn´t that mean that him making <code>git pull origin master</code>in S would make the notice go away? </p>
  
  <p>I understand that this is pretty basic stuff, but we are both pretty new at this stuff so any help is greatly appreciated! :) I also browsed through most of the similar kind of questions, but couldn´t find an answer.</p>