|Re: Open a repository over URL with JGIT [message #1226081 is a reply to message #1225963]
||Tue, 31 December 2013 16:30
| Rüdiger Herrmann
Registered: July 2009
what specific 'action' is it you want to do? In general, you cannot
directly modify a remote repository. This also isn't specific to JGit
but is the way Git works: clone a repository, create commits or
create/modify/delete branches/tags on the cloned repository, then push
those changes to the remote repository.
Depending on your use case, you might want to create a clone in a
temporary location, perform the desired 'actions' and then push the
changes back to the remote and delete the temporary local repository.
On 31.12.2013 16:20, Vicknesh Subramaniyam wrote:
> Hi all,
> I have repository hosted in a remote location, and i would like to
> access / Open it and perform action via JGIT. Please note i don't want
> to clone it or use it as a remote repository.
> Git git = Git.Open(new File("/repo"));
> The above code will open the repository in the local file directory, i
> want a similer option to open up a repository through HTTP URL.
> Is it possible??? if possible can anyone suggest the efficient way to do
> Your help is much appreciated :d
Powered by FUDForum
. Page generated in 0.01844 seconds