Two different methods to automate the process of removing a submodule from a git
repo with a single command. Adapted from here.
NOTE: A commit is made during removal, so it is best to commit any other changes prior to executing the command.
- Create a new file anywhere in your shell's search paths (i.e.
~/.local/bin
) - Copy the following