LoginSignup
209
168

More than 5 years have passed since last update.

git submoduleしてるリポジトリをリモートの最新に更新する

Posted at

git submodule updateしてもgit submodule initした時点のコミットにしか追従してくれません。
git submodule addしてるリポジトリ(例えば.vim/vundleとか)をgithubなどのリモートの最新に追従するにはgit submodule foreach git pull origin masterを実行します。
git statusで見るとsubmoduleで管理しているリポジトリが変更されたことになっているのでgit add/commitしておきます。

209
168
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
209
168