Skip to main content

All Questions

0 votes
1 answer
87 views

Azure devops throwing stderr: 'fatal: You are not currently on a branch.' when trying to push the code to checked out branch using GitPython library

I am trying to check out a git branch,generate files using python code and then push the changes to the branch using GitPython library Below is the code used repo = git.Repo(...
Sachin Shetty's user avatar
1 vote
0 answers
606 views

How to clone Azure DevOps git repository with OAuth token from service principal?

I am trying to clone an Azure DevOps git repository using an Azure app registration/service principal. I was successful in bash with the help of this answer. Sadly, adapting it to GitPython results in ...
Felix Thein's user avatar