How to show history with remote git repository only in JGit

前端 未结 1 1608
春和景丽
春和景丽 2021-01-29 11:50

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 f

1条回答
  •  迷失自我
    2021-01-29 12:14

    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.

    0 讨论(0)
提交回复
热议问题