title: How to use 'git pull' from the command line?
body: <p>We were using a build script to automate our publishing process and it was working with SVN but now we are using Git and need to do some command line operations to pull from our remote repository.</p>
  
  <p>I was able to follow the guide <a href="http://help.github.com/win-set-up-git/" rel="nofollow noreferrer">here</a> and using the Git bash it works great. However, I need to perform these tasks from the Windows command line so that they can be executed by the script.</p>
  
  <p><code>git pull origin master</code> works in the Git bash.</p>
  
  <pre><code>cd "c:\program files (x86)\git\bin
  git --git-dir=path\to\.git pull origin master 
  </code></pre>
  
  <p>fails with an error</p>
  
  <blockquote>
    <p>Permission denied (publickey).<br>
    fatal: The remote end hung up unexpectedly</p>
  </blockquote>
  
  <p>Obviously my SSH key is not being used properly or something. I'm so new to this that I really have no clue what to do.</p>