Skip to content

Instantly share code, notes, and snippets.

@romach
Last active April 2, 2017 19:52
Show Gist options
  • Save romach/27a4c3dee97d9bf2213c6c3b379fd7e4 to your computer and use it in GitHub Desktop.
Save romach/27a4c3dee97d9bf2213c6c3b379fd7e4 to your computer and use it in GitHub Desktop.
Git pull from Python
import git
g = git.cmd.Git(git_dir)
g.pull()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment