DEV Community

Yaroslav Shelomentsev
Yaroslav Shelomentsev

Posted on

RM git submodule

// 1. tmp submodule dir
mv submodule submodule_tmp

// 2. deinit submodule
git submodule deinit -f -- submodule    

// 3. rm submodule
rm -rf .git/modules/submodule

// 4. rm git folder
git rm -rf submodule

// 5. return submodule
mv submodule_tmp submodule

// 6. add submodule
git submodule add -- ./submodule submodule
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay