How to use java to get git information?

Is there any way to programmatically retrieve git information using Java? I want to know:

>All branches in the current repository Directory > current branches of my work project > all committed information

In addition, can I use java to execute git processes (commit, rollback, check out, delete branches, etc.)?

I really appreciate any suggestions thank you

Solution

J Git http://eclipse.org/jgit/ Is a Java API for interacting with git repositories I believe it is the foundation of egit, a plug-in that integrates eclipse into GIT

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>