Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » New to JGit - need to embed git control in application(Getting Started)
icon14.gif  New to JGit - need to embed git control in application [message #647195] Tue, 04 January 2011 23:24 Go to next message
Brian  is currently offline Brian Friend
Messages: 6
Registered: January 2011
Junior Member
My company is working on finishing our transition to git from svn. The last step is hooking up one of our applications to our "central" git repository (I know the term doesn't realy apply in git, but I mean the one that serves as the "origin" repo for all of our local repos).

So, that gives us JGit. However, from what I can find there isn't really a whole lot of documentation on how to actually use JGit as yet, official or otherwise, and so I was hoping somebody could help me out with some basics (as the application is only going to need very basic git operations).

So here's what I need to be able to do: initialize any necessary git containers/objects, pull (or fetch & merge) from origin, commit, and push to origin.

Anyway, if you can point me to some examples of doing this in an embedded fashion using jgit (not egit), or provide the examples here in this context, your help would be greatly appreciated.
Re: New to JGit - need to embed git control in application [message #647476 is a reply to message #647195] Thu, 06 January 2011 15:22 Go to previous messageGo to next message
Chris Aniszczyk is currently offline Chris AniszczykFriend
Messages: 674
Registered: July 2009
Senior Member
We have started working on a JGit User Guide...
http://wiki.eclipse.org/JGit/User_Guide

It's not complete but has the basics there.

Why do you need to embed JGit? If you need a "central" repository... have you considered using Gerrit which embeds JGit and acts as a "proxy" between developers and potentially a "central" Git server...
http://code.google.com/p/gerrit/

We use Gerrit at eclipse.org for some projects...
http://wiki.eclipse.org/EGit/Contributor_Guide#Contributing_ Patches
Re: New to JGit - need to embed git control in application [message #647478 is a reply to message #647476] Thu, 06 January 2011 15:27 Go to previous message
Brian  is currently offline Brian Friend
Messages: 6
Registered: January 2011
Junior Member
We use gitolite for access control and tortoise git/msysgit for handling our local code. We need to embed because we've got an application that compiles some custom files for us and we want it to handle its own source control.

I've seen the user guide and honestly that's what precipitated this post...

I've figured out most of this stuff now but I'm stuck on getting jgit to recognize our host server. see http:// www.eclipse.org/forums/index.php?t=msg&th=202612&sta rt=0&S=d86d8930387f91b1e86911c9df396876 for details
Previous Topic:Empty Refs Map
Next Topic:Can't Uninstall and Can't Update
Goto Forum:
  


Current Time: Wed Apr 24 16:44:07 GMT 2024

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

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

Back to the top