9
6

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内の変更をプッシュする手順

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?