tutorial - git clone--progress
Progress indicator for git clone (4)
I am currently doing a git clone that has taken a few minutes so far and would be curious to know if it is going to finish soon.
With Git 2.10 (Q3 2016),
git clone --progress will be more verbose.
clone: use a real progress meter for connectivity check
Because the initial connectivity check for a cloned repository can be slow, 0781aa4 (
clone: let the user know when
check_everything_connectedis run, 2013-05-03) added a "fake" progress meter; we simply say "
Checking connectivity" when it starts, and "
done" at the end, with nothing between.
check_connected()now knows how to do a real progress meter, we can drop our fake one and use that one instead.
Is it possible to get a progress bar when doing a
git clone? I'm wondering because I am currently doing a git clone that has taken a few minutes so far and would be curious to know if it is going to finish soon.
git clone --progress ?
You can do:
du -s .git
to monitor changes in the size of temporary content to get an idea.
watch du -s .git
allows you to monitor without having to retype the command. Something like the one-liner below will give periodically you the data accumulation rate in kB per second:
delay=5; prev=`du -sk .git/ | cut -f 1`; sleep $delay; while true; do cur=`du -sk .git/ | cut -f 1`; expr \( $cur - $prev \) / $delay ; prev=$cur; sleep $delay; done
You might want to take a look at the folder
While cloning, there should be a file starting with
tmp_pack_. It contains the currently downloading git pack.
With this information you might be able to eyeball the duration.