Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git remove submodule

# Remove the submodule entry from .git/config
git submodule deinit -f path/to/submodule

# Remove the submodule directory from the superproject's .git/modules directory
rm -rf .git/modules/path/to/submodule

# Remove the entry in .gitmodules and remove the submodule directory located at path/to/submodule
git rm -f path/to/submodule
Comment

git submodule remove

# Remove the submodule entry from .git/config
git submodule deinit -f path/to/submodule

# Remove the entry in .gitmodules and remove the submodule directory located at path/to/submodule
git rm -f path/to/submodule

# Remove the submodule directory from the superproject's .git/modules directory
rm -rf .git/modules/path/to/submodule

#Remember to commit the remove change!
git commit -m "removed submodule"
Comment

git remove submodule keep files

mv subfolder subfolder_tmp
git submodule deinit subfolder
git rm --cached subfolder
mv subfolder_tmp subfolder
git add subfolder
Comment

git remove submodule

Option 1.
Remove .gitmodules file from project

Option 2.
rm -rf .git/modules/path_to_submodule

Remember to commit the remove change!
Comment

PREVIOUS NEXT
Code Example
Shell :: unzip specific folder linux 
Shell :: execute command over ssh 
Shell :: how to check which shell 
Shell :: see changes git command line 
Shell :: heroku ubuntu install 
Shell :: gnome 42 force dark mode 
Shell :: unix vs linux 
Shell :: linux terminal show processes 
Shell :: where are timezones located linux 
Shell :: run mongodb on docker linux 
Shell :: pyenv install latest version 
Shell :: cordova-ios latest version 
Shell :: sl in linux 
Shell :: bash adding floats 
Shell :: jupyter show digits 
Shell :: gnutls_handshake() failed: Error in the pull function 
Shell :: how to create hotspot in kali linux terminal 
Shell :: what is git 
Shell :: how to rename a file in terminal 
Shell :: generate component angular without folder 
Shell :: change default terminal linux 
Shell :: How to find a process running on a linux machine from terminal 
Shell :: There is 1 zombie process 
Shell :: generate signing key android 
Shell :: enable mods 
Shell :: commit unstaged changes to new branch 
Shell :: symbolic link wsl mnt 
Shell :: bash echo in variable 
Shell :: raspberry pi headless 
Shell :: install istio on kubernetes on OS linux 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =