LoginSignup
2
2

More than 3 years have passed since last update.

git submodule updateでcloneできないときの対処方法

Posted at

サブモジュールのあるリポジトリでサブモジュールをcloneしてくる場合は以下の様なコマンドを打つかと思います。

git submodule update --init

ただ、権限不足等で途中で失敗し、権限不足を解消してもう一度上記のコマンドを打ってもcloneしてくれないことがあります。

そんなときは、以下のコマンドを打つと解消されることがあります。

git pull --recurse-submodules
git submodule foreach --recursive git reset --hard
2
2
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
2
2