0

I want to check out a spesific revision of a git repo. How to do this using GitPython?

# GitPython==1.0.1
from git import Repo

r = Repo.clone_from(git_url, repo_dir)
#r.checkout(revision)  # How to do this?
Jon Skarpeteig
  • 4,118
  • 7
  • 34
  • 53

0 Answers0