How to git pull rebase using GitPython library?

I am using GitPython library (GitPython Documentation)

The following code is working fine for git pull, but how to use git pull –rebase ?”

  • Working with Github clones and local repos: Cloud9 IDE
  • is there an API for GIT (C++ or other languages)
  • Clarification on using VCS such as Git
  • Rugged - fetch, pull rebase possible?
  • Why does git create merge commits? And how to remove these?
  • Complex git rebase maneuver
  • import git 
    g = git.cmd.Git(git_dir)

    is there any function or parameter we need to add for git pull –rebase ?

  • Unable to stop tracking JetBrains .idea files
  • How to update GitHub forked repository using TortoiseGIT?
  • Permission denied to exec suexec
  • understanding git fetch then merge
  • Unable to install the latest release candidate of a Python library on GitHub
  • Commit reword without interactive rebase?
  • One Solution collect form web for “How to git pull rebase using GitPython library?”

    Have you tried g.pull(“–rebase”)

    Git Baby is a git and github fan, let's start git clone.