Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What Obj-C/C libraries have you used for manipulating git repos in your Mac apps?

I am working on a Mac app that I would like to be able to clone and modify git repos. Using git directly is not an option as it is GPL and I'd like to sell my app commercially without opening the source. I've seen libgit2, which I could link, but I'm not sure how to do that properly, and it doesn't appear to implement any of the things necessary for pushing/pulling repos over the git protocol.

share|improve this question
I have a feeling that would be more effective place to ask – Eugene Mayevski 'EldoS Jan 8 '11 at 20:48
What can your app do that isn't available with the existing offerings? – user1249 Jan 9 '11 at 20:00
@Thorbjørn - it's utilizing a git repo as a data store, it has nothing to do with "managing" a git repo like GitX (and others) do. – Andrew Theken Jan 17 '11 at 15:11
up vote 2 down vote accepted

libgit2 is the only existing Git library that can be linked with a proprietary application without opening its source. Unfortunately, the Git network protocol hasn't been implemented yet -- but it is on the works and the development is moving quite fast.

I think your best bet would be waiting ~1 month until the network support is ready, or switching to Java and using JGit. There are no other options when developing with Obj-C.

share|improve this answer
Thanks, an alternative for mac development is to embed MacRuby and embed something like the Grit gem. – Andrew Theken Jan 17 '11 at 15:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.