1
1

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でgitプロトコルが使えない時の対処法

1
Last updated at Posted at 2013-11-16
  1. まずはgit submodule updateでとってきて失敗する
  2. おそらくgitプロトコルが使えない場合がほとんどなので.gitmodulesをテキストエディタで開く
  3. urlを直接編集してgitプロトコルをhttpsに変更する

自動で切り替えてくれるシステムでもあるのかと思っていたけど、意外とないんですね

追記

なんで切り替えシステムがないの?とgithubの勉強会で知り合った[Matthewさん](https://github.com/matthewmccullough github)に聞いてみたところ
「gitプロトコルのほうが早いのは事実だ。でもhttpsで通信しても殆ど差がなくなってきてるからhttpsがおすすめだね。特にdotfilesのようないろんな環境で通信しなきゃいけないような状況だとhttpsがお勧めさ。」
といってくださいました。

また、「subtree mergeなんて手法もあるよ〜」と教えてくださったので、機会があれば試そうと思います。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?