如何使用GitPython检查特定版本?

时间:2015-12-02 15:04:56

标签: python gitpython

我想查看git repo的特定版本。如何使用GitPython做到这一点?

# GitPython==1.0.1
from git import Repo

r = Repo.clone_from(git_url, repo_dir)
#r.checkout(revision)  # How to do this?

0 个答案:

没有答案