DrSensor / DrSensor/fluent-git

Fluent API to remove git submodule

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
enhancement
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.