Skip to content

Instantly share code, notes, and snippets.

@ofx
Created February 26, 2018 23:03
Show Gist options
  • Save ofx/ff47bfce963c42455f9d08640712c85b to your computer and use it in GitHub Desktop.
Save ofx/ff47bfce963c42455f9d08640712c85b to your computer and use it in GitHub Desktop.
#!/bin/bash
if [ "$1" != "" ]; then
git submodule deinit -f -- $1
rm -rf .git/modules/$1
git rm -f $1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment