title: Why does Git want me to pull before I push?
body: <p>I was setting up a new repository on <a href="http://en.wikipedia.org/wiki/GitHub">GitHub</a> and was trying to push to it but Git kept giving me an error saying: </p>
  
  <blockquote>
    <p>error: failed to push some refs to...</p>
  </blockquote>
  
  <p>I eventually tried pulling first and then pushing and that worked. But why?</p>