Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
看起来可以使用“git log”命令查看 git 存储库中的所有历史记录。 Git:如何在没有注释的情况下从所有分支中检索所有提交?
如何使用 jgit 达到相同的结果?
像这样的例子:
... Git git = new Git(repository); Iterable<RevCommit> commits = git.log().all().call(); for (RevCommit commit : commits) { ... }