LoginSignup
425

More than 5 years have passed since last update.

git submoduleを今風な感じで削除する

Posted at

v1.8.3からgit submodule deinitが追加され、わずらわしかったサブモジュールの削除がほんの少しだけ楽になりました。

$ git submodule deinit path/to/submodule
$ git rm path/to/submodule
$ git config -f .gitmodules --remove-section submodule.path/to/submodule

ちなみにv1.8.5からは最後の行もいらなくなるそうです。

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
425