Skip to main content

All Questions

Tagged with
1 vote
0 answers
266 views

Can I copy an older version of a file from a previous commit using GitPython?

As part of a python script I am working on, I need to be able to make a local copy of a file from a previous commit in a Git Repository. Is there a way to do this using gitPython? I saw in this answer ...
Jason Ellis's user avatar
1 vote
0 answers
970 views

How get source code of files in a commit with GitPython?

I need to get source codes for all files in a commit. Currently I am using Pydriller and it works well. But for performance reasons I need to use GitPython. I have tried this solution: repo = Repo('...
Domenico Antonio Tropeano's user avatar