DrSensor / DrSensor/fluent-git
Fluent API to remove git submodule
- Dominant language
- TypeScript
- Stars
- 4
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
I need this :joy:
- [Gist - How effectively delete a git submodule.](https://gist.github.com/myusuf3/7f645819ded92bda6677) [:grey_question:]
- [StackOverflow - How do I remove a submodule?](https://stackoverflow.com/a/16162000) [:heavy_check_mark::point_down:]
Exception
```console
> [rs-jest]: git submodule deinit -f -- examples/stencil (master) 18:48:24
fatal: Submodule work tree 'examples/stencil' contains a .git directory (use 'rm -rf' if you really want to remove it including all of its history)
```
Workaround
```console
> [rs-jest]: rm -rf examples/stencil/.git (master) 18:48:28
> [rs-jest]: git submodule deinit -f -- examples/stencil (master) 18:53:40
Cleared directory 'examples/stencil'
```
Contributor guide
Assessment
This issue has not been assessed yet.