$cd./path/to/submodule$gitadd--all$gitcommit-am".. comments here .."$gitpush--recurse-submodule=on-demand$cd$(gitrev-parse--show-superproject-working-tree)# or: https://stackoverflow.com/a/7359782/2940319$cd$(gitrev-parse--show-superproject-working-tree--show-toplevel|head-1)$gitadd--all$gitcommit-am".. comments here .."$gitpushorigin$(gitrev-parse--abbrev-refHEAD)
$gitsubmoduledeinit-f<NAME>### operational$gitrm--cached<NAME>$rm-rf<submodulePath>$rm-rf.git/modules/<NAME>$gitconfig-f.gitmodules--remove-sectionsubmodule.<NAME>### or $ rm -rf .gitmodules$gitconfig-f.git/config--remove-sectionsubmodule.<NAME>### or $ vim .git/config