shlogg · Early preview
Sospeter Mong'are @msnmongare

Undoing Submodule Addition: A Step-by-Step Guide

Undo submodule addition: `git submodule deinit -f`, `git rm -f`, then re-add with correct URL & commit changes.

If you haven't pushed the changes yet, you can simply undo the submodule addition by running the following steps:

Remove the incorrect submodule addition:

Since you haven't committed or pushed yet, you can run:

   git submodule deinit -f admin-panel
   git rm -f admin-panel

    
    

    
    




Commit the removal:

After that, stage and commit the removal:

   git commit -m "Removed incorrect admin panel submodule"

    
    

    
    




Proceed to add the correct submodule:

Now, you can add the correct submodule with the right URL:

   git submodule add https://github.com/your-org...