title: How to git pull rebase using GitPython library?
body: <p>I am using GitPython library (<a href="https://gitpython.readthedocs.io/en/stable/" rel="nofollow">GitPython Documentation</a>)</p>
  
  <p>The following code is working fine for git pull, but how to use <strong>git pull --rebase</strong> ?"</p>
  
  <pre><code>import git 
  
  g = git.cmd.Git(git_dir)
  g.pull()
  </code></pre>
  
  <p>is there any function or parameter we need to add for <strong>git pull --rebase</strong> ?</p>