Skip to main content

All Questions

3 votes
2 answers
6k views

how to use git pull with GitPython?

I am trying to pull filesfrom git using python but it's not working. Below is the code I was using: import git git.cmd.Git().pull('https://github.com/User/repo','master') it asks for authentication ...
ZZ3111's user avatar
  • 87
0 votes
0 answers
226 views

Get diff git commit objects in gitpython on git fetch or pull

How can i get updated commits from remote to local branch when we call git pull or git fetch? I need to know the list of commits that are updated on call of git.pull so that i will get to know the ...
tarunkumar's user avatar
1 vote
1 answer
3k views

How can I use gitpython to run 'git pull alias_name master' where alias_name is a custom alias?

I am relatively new to Python and am attempting to use GitPython to pull changes down from a remote repository to its local counterpart that has already been cloned. Outside of the script, running '...
sc_eric's user avatar
  • 101
4 votes
2 answers
6k views

how to pull, push with remote branch

I'm trying to automate a change process which currently creates source code that gets manually pushed to Git. I'm trying to wrap that code using GitPython: from git import * # create the local repo ...
user3242205's user avatar