LoginSignup
4
5

More than 5 years have passed since last update.

sourcetree で submodule を追加できないとき

Last updated at Posted at 2016-12-21
sourcetree 2.3.1

macでsourcetreeからサブモジュールの追加するときの手順

1、左メニューで右クリック。
スクリーンショット-2016-12-21-10.42.26.jpg

2、リポジトリURLを記入して、ローカルのディレクトリも指定
スクリーンショット-2016-12-21-10.47.10.jpg

3、するとエラー。
スクリーンショット-2016-12-21-10.50.49.jpg

[warning: templates not found]ココらへんを調べて見ると
sourcetreeのバグだとか・・・
http://shiro-izu.hateblo.jp/entry/2016/10/28/182252

sourcetreeからは追加できないみたいなんですがコマンドで追加できるとのこと

git submodule add ssh://[gitbucket]/user_name/repository.git dir_name

追加するとサブモジュールとして追加したリポジトリもsourcetreeで認識されました。よかった。

削除コマンド

git submodule deinit path/to/submodule
git rm path/to/submodule
git config -f .gitmodules --remove-section submodule.path/to/submodule
4
5
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
4
5