Просмотр исходного кода

README: fix submodule cannot be removed completely

Signed-off-by: Tianling Shen <[email protected]>
Tianling Shen 4 лет назад
Родитель
Сommit
124b0b9ec7
1 измененных файлов с 5 добавлено и 3 удалено
  1. 5 3
      README.md

+ 5 - 3
README.md

@@ -27,7 +27,7 @@
 
 	```bash
 	rm -rf package/helloworld
-	git submodule add --name helloworld https://github.com/fw876/helloworld.git package/helloworld
+	git submodule add -f --name helloworld https://github.com/fw876/helloworld.git package/helloworld
 	```
 
 2. Pull upstream commits:
@@ -39,8 +39,10 @@
 - Remove
 
   ```bash
-  git submodule --deinit package/helloworld
-  rm -rf package/helloworld
+  git submodule deinit -f package/helloworld
+  git rm -f package/helloworld
+  git reset HEAD .gitmodules
+  rm -rf .git/modules{/,/package/}helloworld
   ```
 
 ### Method 3 - Add this repo as an OpenWrt feed