User Tools

Site Tools


git:git-full-remove-submodules

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
git:git-full-remove-submodules [2024/05/28 14:33] admingit:git-full-remove-submodules [2025/03/25 17:10] (current) admin
Line 15: Line 15:
 url = https://github.com/user/submod.git url = https://github.com/user/submod.git
 </code> </code>
-Remove git tracking of the submodul folder :+Remove git tracking of the submodule folder, but keep the files :
 <code bash> <code bash>
-git rm -r external/gits/submod+git rm --cached -r external/gits/submod
 </code> </code>
 Remove the submodule from git config (all variables are remove using section) : Remove the submodule from git config (all variables are remove using section) :
Line 35: Line 35:
 <code bash> <code bash>
 git push git push
 +</code>
 +Note that the files are still on the host, to remove them just use rm :
 +<code bash>
 +rm -rf external/gits/submod
 </code> </code>
  
  
  
git/git-full-remove-submodules.1716899610.txt.gz · Last modified: 2024/05/28 14:33 by admin