Since it has been asked
How to force pull using this method ?
repo = git.Repo('repo_path') repo.git.pull('--force')