我怎么知道git push的完成百分比?

编程入门 行业动态 更新时间:2024-10-28 04:27:12
本文介绍了我怎么知道git push的完成百分比?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我将大约200 MB的代码推入回购。这需要很多时间。无论如何,我们可以显示进度条,这样我就可以知道有多少代码被推入回购站了?

I'm pushing a code of around 200 MB into a repo. It is taking a lot of time. Is there anyway we can display the progress bar, so that I can know how much amount of code is pushed into the repo?

推荐答案

它不是一个进度条,但是当它从终端运行时,默认情况下已经报告了进度。从用于 git push :

It's not a progress "bar", but git push already reports progress by default when it's run from a terminal. From the official Linux kernel git documentation for git push:

--progress

默认情况下,标准错误流在连接到终端时会报告进度状态,除非 -q 。即使标准错误流没有指向终端,此标志也会强制进度状态。

Progress status is reported on the standard error stream by default when it is attached to a terminal, unless -q is specified. This flag forces progress status even if the standard error stream is not directed to a terminal.

您试图推送200 MB一次表明你可能会用git进行次优化。

The fact that you're trying to push 200 MB at once suggests that you might be doing something sub-optimally with git.

更多推荐

我怎么知道git push的完成百分比?

本文发布于:2023-08-02 13:30:51,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:百分比   我怎么   git   push

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!