Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Commands to import archive zip into new repository(Exporting archiving and re-importingit)
Commands to import archive zip into new repository [message #1438799] Mon, 06 October 2014 14:08 Go to next message
Tim McClure is currently offline Tim McClureFriend
Messages: 1
Registered: October 2014
Junior Member
I have used JGit to create an archive zip of a repository. I now want to allow the user to create a new repository containing the contents of the archived zip file. What are the JGit commands I use to accomplish i task?

Thanks,
Tim McClure
Re: Commands to import archive zip into new repository [message #1439127 is a reply to message #1438799] Mon, 06 October 2014 22:37 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
- InitCommand [1] to initialize a new repository
- AddCommand [2] to add files to the index
- CommitCommand [3] to create a commit

[1] http://download.eclipse.org/jgit/site/3.5.0.201409260305-r/apidocs/org/eclipse/jgit/api/InitCommand.html
[2] http://download.eclipse.org/jgit/site/3.5.0.201409260305-r/apidocs/org/eclipse/jgit/api/AddCommand.html
[3] http://download.eclipse.org/jgit/site/3.5.0.201409260305-r/apidocs/org/eclipse/jgit/api/CommitCommand.html
Previous Topic:External merge tool with git
Next Topic:SHOW Uncommitted changes in FILE ?
Goto Forum:
  


Current Time: Fri Apr 26 19:17:05 GMT 2024

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

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

Back to the top