1

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 and this answer that it's possible to copy the file data and write it to a new file. However, some of the files I need to copy will be zip-files, so it would be much more efficient to be able to copy the file with a direct path.

0 Answers0