chmod 700 ssh-privat
if github rejects ssh key with permissions denied
add path/to/git/cmd
to PATH
env variable
git -c user.name="crbyxwpzfl" -c user.email=no@mail.given commit -m "test"
git -c core.sshCommand="ssh -i %SSHPRIVATE%" clone git@github.com:crbyxwpzfl/various.git
Delete the relevant section from the .gitmodules file
Stage the .gitmodules changes git add .gitmodules
Delete the relevant section from .git/config
git rm --cached path-to-submodule
(no trailing slash)
rm -rf .git/modules/path-to-submodule
(no trailing slash)
git commit -m Removed submodule
Delete the now untracked submodule files rm -rf path-to-submodule