19
16

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.

このsubmodule httpで登録されてるんだけどsshにしたい。。。

Last updated at Posted at 2014-04-15

メモ。

とりあえず.gitmodulesに入ってる情報を

[submodule "deps/foo"]
        path = deps/foo
        url = git@github.com:foo-org/foo.git

などと編集しただけでは依然httpで、どうしたものかと思っていたら、

$ git submodule init.git/configにも情報を書き込むんですね。

ということで
$ git config -e
などして

[submodule "deps/foo"]
        url = git@github.com:foo-org/foo.git

という感じに編集すればOKだった。

追記

@ngyuki さんにコメントいただきました!

git submodule sync
という便利なコマンドがあるようです!

19
16
2

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
19
16

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?