我正在尝试从“普通”git(远程)存储库中提取信息。
考虑https://github.com/jquery/jquery 。您可以找到如下信息:
tjvantoll authored Friday at 10:13 PM
timmywil committed Monday at 10:43 PM
build Release: ensure Sizzle is the latest tag 12 days ago
src Wrap: Declare a dependency on the manipulation module 2 days ago
test Ajax: Support usage without jQuery.event 2 days ago
[...]
我需要这样的信息,但来自 git 存储库,而不仅仅是来自 github。我可以使用 JGit、REST、JSON 或其他东西来获取这些信息并解析它们的作者、网址、日期等吗?
是否有 getAuthor()、getLastCommit()、getDate() 等方法?
最佳答案
您可以查看https://developer.github.com/v3/repos/commits/对于 JSON - 它返回所有提交
关于java - 提取GIT存储库信息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24038106/