Skip to main content

All Questions

Tagged with
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 ...
Helen's user avatar
  • 543
2 votes
1 answer
681 views

GitLab runner, error on push whereas same thing works on git bash or python from a console

Context We're trying to do a GitLab runner job that, on a certain tag, modifies a version header file and add a release branch/tag to this changeset. The GitLab runner server is on my machine, ...
gluttony's user avatar
  • 569
7 votes
2 answers
18k views

GitPython unable to set the git config username and email

I am writing a python script that uses GitPython(https://gitpython.readthedocs.io/en/stable/) to commit my local files to a remote repository. After making the edits to my files, I set the vaue of ...
sshussain270's user avatar
  • 1,875
6 votes
3 answers
13k views

git push using python

I have local git repository. I am using python to commit the local repo using gitpython library. I want to push the commit to github. How can I do this using gitpython or any other library. I looked ...
Sam's user avatar
  • 766
4 votes
2 answers
6k views

how to pull, push with remote branch

I'm trying to automate a change process which currently creates source code that gets manually pushed to Git. I'm trying to wrap that code using GitPython: from git import * # create the local repo ...
user3242205's user avatar