我怎么知道git push的完成百分比? [英] How can I know how much percentage of git push is complete?
问题描述
我将大约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
默认情况下,标准错误流在连接到终端时会报告进度状态,除非<$指定c $ c> -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的完成百分比?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!