Is it possible to get commit logs/messages of a remote git repo without git clone

后端 未结 4 581
生来不讨喜
生来不讨喜 2020-11-29 06:55

Is it possible to get commit logs/messages of a remote git repo without git clone?

The git repo I am working with is huge, even if I run git clone with --depth=1 sti

4条回答
  •  被撕碎了的回忆
    2020-11-29 07:34

    If you are looking to see the last few commits of a branch, try:

    git clone -b [branch name] --single-branch [repo url] --depth=3
    

    This will clone only the last 3 commits on the branch you are interested. Once done you can get into the cloned repo and view the history.

提交回复
热议问题