0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

git submodule を削除する方法

Last updated at Posted at 2019-07-28

git submodule addで追加したリポジトリを削除する方法のメモ。
間違っているかもしれません。

  1. git submodule deinit -f <path>
  2. .gitmodules .git/configから対応する行を削除する。
  3. .git/modules/<path>を削除する。
  4. <path>を削除する。
  5. 変更をコミットする。

なお、既にあるsubmoduleのURLを変更したい場合も、一度削除してから追加すればよいのではないかと思います。

0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?