b32c71b59d29f037578604347c7aa286fb9200f2
.redirects.gollum
| ... | ... | @@ -22,3 +22,4 @@ macos/Finderで隠しファイルを表示する.md: macos/finder/Finderで隠 |
| 22 | 22 | failed to locate and extract VM_ID for.md |
| 23 | 23 | git/submdule/”Direct fetching of that commit failed.”を解決する.md: git/submodule/”Direct |
| 24 | 24 | fetching of that commit failed.”を解決する.md |
| 25 | +git/submoduleを普通のディレクトリに戻す.md: git/submodule/submoduleを普通のディレクトリに戻す.md |
git/submodule/submodule\343\202\222\346\231\256\351\200\232\343\201\256\343\203\207\343\202\243\343\203\254\343\202\257\343\203\210\343\203\252\343\201\253\346\210\273\343\201\231.md
| ... | ... | @@ -0,0 +1,10 @@ |
| 1 | +[How to un-submodule a Git submodule? - Stack Overflow](https://stackoverflow.com/questions/1759587/how-to-un-submodule-a-git-submodule) |
|
| 2 | + |
|
| 3 | +``` |
|
| 4 | +$ git rm --cached submodule_path # delete reference to submodule HEAD (no trailing slash) |
|
| 5 | +$ git rm .gitmodules # if you have more than one submodules, |
|
| 6 | + # you need to edit this file instead of deleting! |
|
| 7 | +$ rm -rf submodule_path/.git # make sure you have backup!! |
|
| 8 | +$ git add submodule_path # will add files instead of commit reference |
|
| 9 | +$ git commit -m "remove submodule" |
|
| 10 | +``` |
git/submodule\343\202\222\346\231\256\351\200\232\343\201\256\343\203\207\343\202\243\343\203\254\343\202\257\343\203\210\343\203\252\343\201\253\346\210\273\343\201\231.md
| ... | ... | @@ -1,10 +0,0 @@ |
| 1 | -[How to un-submodule a Git submodule? - Stack Overflow](https://stackoverflow.com/questions/1759587/how-to-un-submodule-a-git-submodule) |
|
| 2 | - |
|
| 3 | -``` |
|
| 4 | -$ git rm --cached submodule_path # delete reference to submodule HEAD (no trailing slash) |
|
| 5 | -$ git rm .gitmodules # if you have more than one submodules, |
|
| 6 | - # you need to edit this file instead of deleting! |
|
| 7 | -$ rm -rf submodule_path/.git # make sure you have backup!! |
|
| 8 | -$ git add submodule_path # will add files instead of commit reference |
|
| 9 | -$ git commit -m "remove submodule" |
|
| 10 | -``` |