如何从回购获得git日志。在github.com? [英] how to get git log from a repo. in github.com?

查看:115
本文介绍了如何从回购获得git日志。在github.com?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道 git log 的一种做法是做一个repo的 git clone 。从哪里有一个git回购。所以如果有一个大的git回购。在github.com上,我只想要一个回购的git日志。无论是最新版本还是现在版本,甚至只是一个原始的git日志,都有可能不克隆回购。 ?如果是的话,我该如何去做。你可以使用任何git回购。在github上分享如何做同样的事情。如果有什么办法可以做同样的事情,我就试图在互联网上找到。

I know one way to a git log is to do a git clone of a repo. from somewhere where there is a git repo. So if there is a large git repo. on github.com and I just want a git log of the repo. either between the last release and now or even just a raw git log is it possible without cloning the repo. ? If yes, how do I go about doing that. You can use any git repo. on github to share ways to do the same. I tried on the interwebs if there was any way to do the same but came up short.

推荐答案

如果提供Git仓库托管服务的远程服务器也提供API,则只能这样做。

You can only do so if the remote server which provide the Git repo hosting service also provides an API.

例如,GitHub允许您获取git repo的日志(无需先克隆),列出仓库中的提交信息

For instance, GitHub allows you to get the log of a git repo (without cloning it first), with listing the commits on a repository

GET /repos/:owner/:repo/commits

您可以添加多个参数来限制你想要的提交,比如?sha = xxx ,一个SHA或者分支来开始列出提交。

You can add several parameters to limits the commits you want, like ?sha=xxx, a SHA or branch to start listing commits from.

这篇关于如何从回购获得git日志。在github.com?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆