title: How does Git know which repository to push to?
body: <p>I'm a complete noob when it comes to version control, but I recently started using GitHub to host some of my projects. I blindly use the command <code>git push origin master</code> to push changes to either of the two repositories. I don't understand how Git knows which repository to push to. I use the same command to push to each. Does the directory I'm in have anything to do with it?</p>
  
  <p>Thanks for clearing this up for me.</p>