Skip to content

Instantly share code, notes, and snippets.

@qstudio
Created October 16, 2020 16:57
Show Gist options
  • Save qstudio/213e8a5aae8735f6eeafbd55ae57eca8 to your computer and use it in GitHub Desktop.
Save qstudio/213e8a5aae8735f6eeafbd55ae57eca8 to your computer and use it in GitHub Desktop.
git submodule deinit -f wp-content/plugins/REPO
rm -rf .git/modules/wp-content/plugins/REPO/
git rm -r --cached wp-content/plugins/REPO
rm -rf wp-content/plugins/REPO/
git commit -m "Removed PLUGIN REPO"
git submodule add -f https://github.com/USER/REPO wp-content/plugins/REPO
git commit -m "Added PLUGIN REPO"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment