title: How can I use gitpython to run 'git pull alias_name master' where alias_name is a custom alias?
body: <p>I am relatively new to Python and am attempting to use GitPython to pull changes down from a remote repository to its local counterpart that has already been cloned.</p>
  
  <p>Outside of the script, running 'git pull alias_name master' (Where alias_name is a custom alias) directly from terminal works every time. I verify that the local repo actually updated by comparing the commit SHA between the local instance of the repo and the remote</p>
  
  <pre><code>cd path/to/local/instance/of/repo
  git pull alias_name master
  git log --pretty=format:'%h' -n 1
  </code></pre>
  
  <p>If what is returned above matches the commit SHA for the web interface for the remote repo, I know the local repo has pulled down the latest changes.  Each time I run this from terminal, the SHAs match up and I can see the debugger pull down the latest changes.</p>
  
  <p>When running the following, the script executes without any errors being thrown, but the local repo is not updated because the SHAs do not match up after running the script.</p>
  
  <p>Here is what I have:</p>
  
  <pre><code>import git
  from git import Repo
  
  repo= git.Repo(path/to/local/instance/of/repo)
  o = repo.remotes.origin
  repo.heads.master.set_tracking_branch(o.refs.master)
  repo.heads.master.checkout()
  o.pull()
  o.push()
  </code></pre>
  
  <p>I essentially am wondering if there any way to tell gitpython to run 'git pull alias_name master' instead of  'git pull -v origin' (which it appears to be running by default with o.pull())?</p>