Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » [JGIT] How to get started(How to receive informationos from a remote Repository)
[JGIT] How to get started [message #692404] Mon, 04 July 2011 11:44
Lord_aratorn is currently offline Lord_aratornFriend
Messages: 2
Registered: May 2011
Junior Member
id like to connect to a remote git-repository using the jGit-API.
But i have no clue how to do so.
Ive tryed to get started with the jGit userGuide.
But already the first line of code do not work at all.
After ive changed that code to a running one, it will look like this.

RepositoryBuilder builder = new RepositoryBuilder();
	try {
		Repository repository = builder.setGitDir(new File("git@myServer")).readEnvironment().findGitDir().build();
		Map<String, Ref> tags = repository.getTags();
		for (String key : tags.keySet()) {
	} catch (IOException e) {

But i got no result of those executions.

A second question which arises is, who can a connection to that remote repository be established using an ssh_privatekey and pagent as keyagent?

Thanks for the help.
Previous Topic:Old EGit versions
Next Topic:key bindings conflct with Java development
Goto Forum:

Current Time: Sat Jun 06 14:29:06 GMT 2020

Powered by FUDForum. Page generated in 0.01943 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top