GitPython and SSH Keys?
问题 How can I use GitPython along with specific SSH Keys? The documentation isn't very thorough on that subject. The only thing I've tried so far is Repo(path) . 回答1: Please note that all of the following will only work in GitPython v0.3.6 or newer. You can use the GIT_SSH environment variable to provide an executable to git which will call ssh in its place. That way, you can use any kind of ssh key whenever git tries to connect. This works either per call using a context manager ... ssh