Skip to content
sam bacha edited this page Mar 8, 2022 · 1 revision

Welcome to the gitxxx wiki!

#!/bin/bash

# Remove the submodule entry from .git/config
git submodule deinit -f "$(pwd)/lib"

# Remove the submodule directory from the superproject's .git/modules directory
rm -rf .git/modules/"$(pwd)/lib"

# Remove the entry in .gitmodules and remove the submodule directory located at "$(pwd)/lib"
git rm -f "$(pwd)/lib"
Clone this wiki locally