Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/regex/19.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在拉取/取数时观察Git进度_Git_Git Fetch - Fatal编程技术网

在拉取/取数时观察Git进度

在拉取/取数时观察Git进度,git,git-fetch,Git,Git Fetch,我的问题是: 当我对某个大型存储库执行拉/取操作时,我希望在控制台以外的其他地方显示进度(例如在网站上) 我知道Git1.7.1.1中有一个选项——progress,但我不能使用这个版本,必须使用1.6.0.4 有人知道如何观看git fetch/pull进度(例如如何提取当前下载百分比)吗?我不知道如何做到这一点,因为--progress选项已经在upload pack.c /* We read from pack_objects.err to capture stderr outpu

我的问题是:

当我对某个大型存储库执行拉/取操作时,我希望在控制台以外的其他地方显示进度(例如在网站上) 我知道Git1.7.1.1中有一个选项——progress,但我不能使用这个版本,必须使用1.6.0.4


有人知道如何观看git fetch/pull进度(例如如何提取当前下载百分比)吗?

我不知道如何做到这一点,因为--progress选项已经在
upload pack.c

    /* We read from pack_objects.err to capture stderr output for
     * progress bar, and pack_objects.out to capture the pack data.
     */

由git fetch pack调用,了解对方缺少哪些对象,并在打包后发送它们

最终用户通常不会直接调用此命令
该协议的UI位于git fetch pack的
端,而该程序对用于从远程存储库提取更新
有关推送操作,请参阅git发送包

因此,如果服务器不发回此类数据,我不知道如何直接提取,除非在
upload pack.c

    /* We read from pack_objects.err to capture stderr output for
     * progress bar, and pack_objects.out to capture the pack data.
     */
如果您可以访问服务器端的
pack\u objects.err
,您可能可以(也许)从中获得一些信息