Skip to content

Instantly share code, notes, and snippets.

@tkfm-yamaguchi
Created August 22, 2012 05:50
Show Gist options
  • Select an option

  • Save tkfm-yamaguchi/3422660 to your computer and use it in GitHub Desktop.

Select an option

Save tkfm-yamaguchi/3422660 to your computer and use it in GitHub Desktop.
submoduleをレポジトリから削除
#REF: http://d.hatena.ne.jp/oppara/20101116/p1
# .git/configの編集はしないver.
#
# 1. .gitmodulesから該当行を削除
# 2. cacheをrm
git rm --cached path/to/hoge
git commit
# 3. init
git submodule init
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment