All Questions
5 questions
1
vote
1
answer
2k
views
How to use GitPython to perform "git push" when using SSH Keys?
I am trying to write a Python Controller, which would help me automate Git -usage. I've gotten all other commands to work - but I am having difficulties with git push equivalent, when using GitPython ...
1
vote
1
answer
170
views
Identify the commits that were made in the last push
Is there a way to determine which commits that were pushed during the last push event using the GitPython library?
The only thing I've found is the ability to search for a commits made during some ...
1
vote
1
answer
888
views
How to push to git using gitPython with different users
I use gitPython to push to a remote repo using different users who are logged in into our app.
For now I just push to repo like below:
logging.debug('Opening repo {}...'.format(repo_path))
repo = ...
1
vote
1
answer
439
views
Gitpython: test python pass but no file pushed in the repository
I'm about executing test using python and as selenium webdriver as a server , i added the gitpython module that i can apply a git test (clone , add , commit and push)
Every thing is Ok , and the test ...
25
votes
5
answers
74k
views
Git push via GitPython
I have this code in Python (using "import git"):
repo = git.Repo("my_repository")
repo.git.add("bla.txt")
repo.git.commit("my commit description")
Now I want to push this commit. I've tried a lot ...