Skip to main content

All Questions

0 votes
1 answer
89 views

How to get Number of files touched, Number of lines added, Number of lines removed from for commit in repo.iter_commits(branch) using python git?

I would like to store the following info per commit like so, for commit in repo.iter_commits(branch): author_name=commit.author.name commit_id=commit commit_authored_date=datetime.datetime....
Gargee Suresh's user avatar
0 votes
0 answers
153 views

Returning all repos under a given root path using GitPython

If I provide a root path such as ("C:/ProgramFiles") to the function, the code should give a list, where each element is the (local path of this repo found under the root path, remote URL, ...
Luk Aron's user avatar
  • 1,457
1 vote
1 answer
882 views

I see scapy ipsec.py python code in GitHub: how do I install and use it?

There is a python module to generate IPSec packets using scapy in GitHub, but that file is not in its own .git extension to download. Please find the link for the code:https://github.com/secdev/...
Vinayak Hosamani's user avatar
3 votes
0 answers
2k views

Gitpython - can't clone from remote repo using private ssh key

I'm trying to clone a project from git using Python's Gitpython library, but instead of password i want to use ssh keys for authentication. I've created a pair of private and public keys and put the ...
Caffeine's user avatar
  • 455
0 votes
0 answers
384 views

GitPython Via HTTPS

I am currently trying to push to Git via GitPython using HTTPS. I am able to do this successfully, but I am prompted to enter my username and password for every fetch, push, and pull operation. I ...
Tyler R's user avatar
  • 504
3 votes
2 answers
6k views

Can't use gitpython in AWS lambda

I've been trying to use the gitpython package in aws lambda. I've used python2.7 environment. I bundled up gitpython using this along with my python code into a zip file and uploaded. import json ...
Neeraj's user avatar
  • 1,827
14 votes
2 answers
19k views

gitpython: Command syntax for git commit

with using gitpython module, I am writing python script to check git diff --> git add of all modified files one by one. At the end I want to commit all these changes, but I didn't find the exact ...
SunilThorat's user avatar
  • 1,748
1 vote
0 answers
386 views

use GitPython on remote machine

Using GitPython locally is peace of cake, I need clone, pull, commit git repository on remote machine. I know I can wrap bash/git commands with paramiko, but I need find out if there is any way to do ...
emcek's user avatar
  • 543
3 votes
1 answer
1k views

GitPython: Determine files that were deleted in a specific commit

Using gitpython, I am trying to get a list of changed paths; that is, of all the added, changed and deleted files. I can retrieve the changed and added files from the commit: checkout commit 'X' ...
Wilbert's user avatar
  • 7,439