How do I view the latest commits of a remote Git repository without making a clone first?

后端 未结 2 751
情话喂你
情话喂你 2021-01-13 06:42

I want to get a list of the latest commits on a certain remote Git repository. However, I do not want to create a clone because that takes too long.

With SVN, I can

2条回答
  •  轮回少年
    2021-01-13 07:37

    This is probably not exactly what you want, but you could create a shallow clone using the --depth option to git clone. That clones only the last n revisions. It still copies all the content, though.

    For XML-like formatting you could use a custom log format like this:

    git log --pretty=format:'%ae%s'
    

提交回复
热议问题