0

I'd like to checkout a specific revision of a git repository with Java. I've found JGit to do thos task. A clone of the entire repo is already possible:

Git.cloneRepository();

However, I need a specific revision (not HEAD). How could this be achieved with JGit?

MH.
  • 557
  • 1
  • 6
  • 11
  • This has been answerd here: http://stackoverflow.com/questions/24892748/jgit-checking-out-file/24893404#24893404 - the title of the question should probably be renamed to better match the content. – Rüdiger Herrmann Jan 13 '15 at 17:01
  • Oh, I'm very sorry that I have produced a duplicate. – MH. Jan 15 '15 at 02:48

0 Answers0