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

馋奶兔 提交于 2019-12-01 06:27:58

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:'<commit><author>%ae</author><subject>%s</subject></commit>'

You can fetch from the remote repository. This does not merge the changes into your local code, but is represented locally by a branch for the remote repository, with the latest commits.

I.e., you can see individual commits to the remote repository and even cherry-pick single commits if you want.

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