All Questions
Tagged with gitpython git-branch
6 questions
1
vote
1
answer
178
views
how to run set-branches at origin in GitPython
I am working with shallow-clone and shallow fetch with GIT repo, There is Git-Python being used in the code
In Git-python, what would be equivalent command for the following git cmd command
git remote ...
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('...
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 ...
-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 ...
1
vote
1
answer
289
views
Git python API returns invalid branch name when using tag
I am trying to checkout a branch with a tag that references a commit. I keep getting an error that the branch name is invalid because it is trying to take the tag name as part of my branch. I am using ...
4
votes
2
answers
2k
views
gitpython - checking if branch is not merged with repo object?
I need to check if branch I'm interested is merged to another branch.
With gitpython, I can use its git command object like:
import git
g = git.Git('/path/to/git/repo')
g.branch("--no-merged", "...