以下の内容はhttps://kkkw.hatenablog.jp/entry/git/chenge-submodule-urlより取得しました。


Gitでsubmoduleのurlを変更する

自分用メモ

サブモジュール内で下記のようになっているものを

bash-3.2$ git remote -v
origin  git:/path/to/repo.git (fetch)
origin  git:/path/to/repo.git (push)

下記に変更したい場合

bash-3.2$ git remote -v
origin  ssh://git/path/to/repo.git (fetch)
origin  ssh://git/path/to/repo.git (push)

親となっているリポジトリで、.gitmodulesを編集
urlの部分を新しくしたいurlに変更する

vi .gitmodules

このままでは、親リポジトリのほうで認識できていないのでsyncで教えてあげる。
すると、親リポジトリの .git/configの中も変わる。

git submodule sync

参考
http://stackoverflow.com/questions/913701/changing-remote-repository-for-a-git-submodule




以上の内容はhttps://kkkw.hatenablog.jp/entry/git/chenge-submodule-urlより取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14