How to git pull rebase using GitPython library?

I am using the GitPython library ( GitPython Documentation )

The following code works fine for git pull, but how to use git pull --rebase ? "

import git 

g = git.cmd.Git(git_dir)
g.pull()

is there any function or parameter to add for git pull --rebase ?

+4
source share
1 answer

Have you tried g.pull ("- rebase")

+3
source

Source: https://habr.com/ru/post/1649925/


All Articles