git remove submodule keep files
To remove a submodule you need to:
Delete the relevant section from the .gitmodules file.
Stage the .gitmodules changes git add .gitmodules
Delete the relevant section from .git/config.
Run git rm --cached path_to_submodule (no trailing slash).
Run rm -rf .git/modules/path_to_submodule (no trailing slash).
Commit git commit -m "Removed submodule "
Delete the now untracked submodule files rm -rf path_to_submodulemv subfolder subfolder_tmp
git submodule deinit subfolder
git rm --cached subfolder
mv subfolder_tmp subfolder
git add subfolder
Also in C++:
- Adding "0" if clock have one digit
- turn off selinux centos
- ng : File C:\Program Files\nodejs\ng.ps1 cannot be loaded because running scripts is disabled on this system.
- linux file size
- bash how to use screen
- command line weather
- wsl ubuntu git status and the file are not staged
- git switch branch to another branch
- RuntimeError: The current Numpy installation fails to pass a sanity check due to a bug in the windows runtime.
- composer installed versions
- install postgres 11 ubuntu
- change direcotry ubuntu
- remove port iptables
- install pip for python 2.7 linux
- install kubectx
- ubuntu top bar hide
- how to install rasa in pip
- ssh-add could not open a connection to your authentication agent centos
- raw.githubusercontent.com/lewagon/rails-templates
- sshpass example
- Lock the screen powershell
- install brew max
- remove .idea from git
- laravel command not found after installing laravel mac