2

What I want to know is, there are many java implementation for access git.

  1. Is there a way to use thees libraries? I have seen so many tutorials saying how access git via java code. Its a single class that has git functions. But there is no consideration how we use thees code for real application.

  2. Then without using plug in IDEs(jgit,egit....) or CLI tool how we use thees libraries for our java project?

Buddhi
  • 85
  • 1
  • 3
  • 10

1 Answers1

2

The one library that you can use outside of any IDE, and for any of your java project, is JGit (sources at GitHub, User Guide).

See "Confusion in choosing between JavaGit, JGit and EGit"

That library can be used independently of Eclipse.

As I mention in this answer, the package org.eclipse.jgit.test/tst/org/eclipse/jgit includes tons of tests, for you to take example of.
This JGit cookbook project is also a good source of examples.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250