LoginSignup
1
0

More than 1 year has passed since last update.

git submodule updateで進捗状況を表示する

Last updated at Posted at 2021-09-09

問題

git submodule update コマンド使用時に、対象の外部サブリポジトリの容量が大きい場合、何も画面表示が変わらないまま固まってしまう(ように見えてしまう)

解決方法

--progress オプションを付与することで、通常の git clone 時と同様に進捗状況が表示されるようになる。

$ git submodule update --progress
...
remote: Counting objects: 16355, done.        
remote: Compressing objects: 100% (10388/10388), done.        
remote: Total 16355 (delta 9044), reused 18163 (delta 8150)        
Receiving objects: 100% (16355/16355), 197.16 MiB | 1.02 MiB/s, done.

備考

Git 2.11より git submodule update--progress オプションが追加されている。
https://github.com/git/git/commit/72c5f88311dab7149fcca1f6029414ccb776fee8

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0