How to show history with remote git repository only in JGit

感情迁移 提交于 2019-12-20 07:59:21

问题


I only want to run the git log command to get some commit info, and don't want to do it after cloning a remote reprository to local. Wonder if there is quick way for JGit here?


回答1:


All operations on a Git repository are local. In order to access the history of a repository, you must clone it first.

If you are only interested in the current state you may do a shallow clone to save some bandwidth.



来源:https://stackoverflow.com/questions/48760586/how-to-show-history-with-remote-git-repository-only-in-jgit

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!