gpt4 book ai didi

java - 为 Java 寻找合适的 Git 库

转载 作者:IT老高 更新时间:2023-10-28 20:35:31 26 4
gpt4 key购买 nike

我正在为独立应用程序寻找适合 Java 的 Git 库。

有人可以推荐吗?

最佳答案

我相信你可以使用 JGit 在您的 Java 应用程序中。

主页包括:

JGit has very few dependencies, making it suitable for embedding in any Java application, whether or not the application is taking advantage of other Eclipse or OSGi technologies.

download page提到:

JGit can be consumed in a Maven build.
Multiple artifacts are available, depending on the application's requirements:

jgit-cookbook/blob/master/pom.xml 中查看完整的 pom.xl :

摘录:

<repositories>
<repository>
<id>jgit-repository</id>
<url>http://download.eclipse.org/jgit/maven</url>
</repository>
</repositories>

<!-- Core Library -->
<dependencies>
<dependency>
<groupId>org.eclipse.jgit</groupId>
<artifactId>org.eclipse.jgit</artifactId>
<version>3.4.1.201406201815-r</version>
</dependency>
</dependencies>

当前支持的 git 命令的确切列表并不总是最新的(如 the bug 317482 illustrates ):

2013 年 9 月至 2014 年 7 月更新:以下所有命令现已可用

alt text

关于java - 为 Java 寻找合适的 Git 库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4193277/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com