Skip to content

Instantly share code, notes, and snippets.

@raimon49
Created March 23, 2014 06:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raimon49/9719585 to your computer and use it in GitHub Desktop.
Save raimon49/9719585 to your computer and use it in GitHub Desktop.
checkoutしてる側でsubmoduleのリポジトリ変更に追従
# [submodule "module-name"] から対象のリポジトリエントリを削除
$ vim .git/config
# それまでcheckoutしていたリポジトリを削除
$ cd .git/modules
$ rm -rf module-name
# Dマークが付くが、無視して再度submoduleを初期化
$ git submodule update --init
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment