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

后端 未结 4 573
生来不讨喜
生来不讨喜 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:36

    Not the exact, but a way around.

    Use GitHub Developer API

    1. Opening this will get you the recent commits.
    
        https://api.github.com/repos/learningequality/ka-lite/commits
    
        You can get the specific commit details by attaching the commit hash in the end of above url.
    
    2. All the files ( You need sha for the main tree)
    
        https://api.github.com/repos/learningequality/ka-lite/git/trees/7b698a988683b161bdcd48a949b01e2b336b4c01
    

    I hope this may help.

提交回复
热议问题