Add `git-create-submodule` to add submodules from any directory
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 18.1k
- Forks
- 1.2k
- Avg merge
- 5d 17h
- Merged PRs (30d)
- 1
Description
Git only accepts adding a submodule from the repository root.
If we know we're not in the root directory why not add the submodule relative to the working directory?
I've added the command to my own dotfiles repository but I can send a pull-request if anyone is interested. Here it is:
https://github.com/ricobl/dotfiles/blob/master/bin/git-create-submodule
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked implementation at bin/git-create-submodule in the reporter's dotfiles repository, then compare it with the git-extras command layout. The change is done when git-create-submodule can add a submodule when invoked outside the repository root.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, shell
- Domain
- cli, tooling
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100