LoginSignup
9
5

More than 5 years have passed since last update.

Git Submodule内の変更をプッシュする手順

Posted at

Submodule

サブモジュール内のファイルを変更する

  • cd submodule/xxx
  • git add .
  • git commit -m 'hogehoge'
  • git push origin HEAD

本体側

modified: submodules/xxxと出ている

  • git add submodules/xxx
  • git commit -m 'xxx'
  • git push origin HEAD

これでsubmodule側でプッシュしたコミットIDに本体側の参照が切り替わる

9
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
9
5