Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jgit-dev] question about creating remote repos

Hi 
I want to use jGit in my java project to create a remote repo
with a predefined structure.

I was able to create a local repo with the following code:
		RepositoryBuilder repBuild = new RepositoryBuilder();
		Repository repo = null;
		try {
			repo = repBuild.setGitDir(new File("/my/git/dir"))
			.readEnvironment()
			.findGitDir()
			.build();
			
			repo.create();
		} catch (IOException e) {
			e.printStackTrace();
		}

Two things I want to know:
1. How can I create a remote repository?

2. How can I push/fill that repo with my folder-structure?

Thanks guys
-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de


Back to the top