Skip to content

hzcx998/git-rm-submod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

git-rm-submod

git remove submodule methond

1. remove test_mod

# step 1
vim .git/config

-[submodule "test_mod"]
-        active = true
-        url = https://github.com/yourname/test_mod

# step 2
rm -rf .git/modules/test_mod

# step 3
rm -rf test_mod

# step 4
git rm --cached test_mod

2. remove hello/test_mod

vim .git/config
rm -rf .git/modules/hello/test_mod
rm -rf hello/test_mod
git rm --cached hello/test_mod

About

git remove submodule methond

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published