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
0 votes
0 answers
439 views

Error for git branch command using GitPython?

So I am using GitPython in a script to get the start branch of a commit. It works for some, but for others I eventually get errors like these: [10] => Failed to process commit: Cmd('git') failed ...
Alexander's user avatar
-1 votes
1 answer
44 views

Commits from branch master appear in other branch - GitHub

I am analyzing commits from project apache/mina-sshd but I am running to a problem: All commits in the branch 0.9.x from project mina-sshd (except for the first 3 commits) belongs to branch master ...
Zui Vu's user avatar
  • 1