| [JGit] First time checkout [message #580771] |
Mon, 31 May 2010 03:05  |
Andrey Messages: 10 Registered: May 2010 |
Junior Member |
|
|
Hi,
Trying to discover the ability of checkout files from remote repository to local folder using JGit.
I got stuck after repository creation.
Repository repo = new Repository(new File("C:\\git\\new"));
RepositoryConfig config = repo.getConfig();
config.setString("remote", "origin", "url", "http://www.kernel.org/pub/scm/git/git.git");
repo.create();
My understanding is I should somehow get a Tree object but all attempts failed.
Any examples appriciated.
Thanks.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04462 seconds