我将大约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的完成百分比?
发布评论