Skip to main content

All Questions

6 votes
2 answers
3k views

How to get master/main branch from gitpython

How one can know about the master/main branch at git remote with git-python. I am aware that we can iterate over the heads of the repository and then check the results. Something like repo = git.Repo('...
John Byro's user avatar
  • 734
1 vote
1 answer
2k views

getting difference of commits between two branches using gitpython

What I want to achieve can be done using command line git as follows git log stage..develop commit ea31b4f01f02af91f31.....b34895e1c825 (origin/develop, develop) Author: author <[email protected]&...
codeaprendiz's user avatar
  • 3,215
1 vote
2 answers
1k views

pushing zipped files on github using python

i want to push a .zip file on github using python code or API, but in doing so with some resources which i found on stackoverflow, the file is being pushed but the data pushed is corrupted and cannot ...
User6670's user avatar
  • 160
1 vote
1 answer
3k views

How to checkout and merge branches to master - GITPYTHON

I need to merge all my branches to the master using python. branch local path,buildno getting via environment variables. I have the following code to checkout each branch and merge to master. but it ...
Tharanga Abeyseela's user avatar
0 votes
1 answer
63 views

Continuous Integration of Repositories from GitHub using Python

I want to download multiple repositories from GitHub using Python libraries. I found gitpython, but I don't know how to write a program which continuously forks repositories. Any suggestions how can I ...
Mia's user avatar
  • 39