bug <<
Previous Next >> url錯誤
cmsimde錯誤
github 送上去的資料沒有綠勾,cmsimde開不起來,要刪除cmsimde重新安裝。
- Delete the relevant section from the
.gitmodules
file.
- Stage the
.gitmodules
changes:
git add .gitmodules
- Delete the relevant section from
.git/config
.
- Remove the submodule files from the working tree and index:
git rm --cached path_to_submodule
(no trailing slash).
- Remove the submodule's
.git
directory:
rm -rf .git/modules/path_to_submodule
- Commit the changes:
git commit -m "Removed submodule <name>"
- Delete the now untracked submodule files:
rm -rf path_to_submodule
步驟
1.把cp2020的.gitmodules
刪掉
2.打git add .gitmodules指令 註:在cp2020裡目錄打指令
3.打git rm --cached cmsimde
4.打rm -rf .git/modules/path_to_submodule #無法用rm,直接進到cp2020/.git檔/modules/刪掉cmsimde資料夾
5.打git commit -m "cmsimde"
6.打rm -rf path_to_submodule #無法用rm,直接進到cp2020刪掉cmsimde資料夾
7.git submodule add https://github.com/mdecourse/cmsimde
8.git add .
9.git commit -m "name"
10.git push
bug <<
Previous Next >> url錯誤