LoginSignup
17

More than 5 years have passed since last update.

git clone -> git submodule init -> git submodule updateがだるいとき

Posted at

submoduleがあるリポジトリをcloneするときは普通こんな感じの流れになる。

$ git clone [url]
$ git submodule init
$ git submodule update

でも、毎度毎度cloneし直したりするときにこれを打つのはだるい。
そんなときはこれ!

$ git clone --recursive [url]

clone→submodule init→submodule updateの流れをコマンド一発でやってくれて糞便利だった。

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
17