subrepo - Git Submodule Alternative
This is just an example for generating completion for an existing command, https://github.com/ingydotnet/git-subrepo
This git command "clones" an external git repo into a subdirectory of your repo. Later on, upstream changes can be pulled in, and local changes can be pushed back. Simple.
This command is an improvement from git-submodule and git-subtree; two other git commands with similar goals, but various problems.
git-submodule
git-subtree
--help -h Show command help (flag)
subrepo branch [options] [<subrepo>]
Create a branch with local subrepo commits since last pull.
Options:
--all All subrepos (flag)
Parameters:
subrepo Subrepo
subrepo clean [options] [<subrepo>]
Remove artifacts created by fetch and branch commands.
fetch
branch
subrepo clone [options] <repository> [<subdir>]
Add a repository as a subrepo in a subdir of your repository.
--branch -b Upstream branch --force -f reclone (completely replace) an existing subdir. (flag)
repository * subdir
subrepo commit <subrepo> [<subreporef>]
Add subrepo branch to current history as a single commit.
subrepo * Subrepo subreporef Subrepo ref
subrepo fetch [options] [<subrepo>]
Fetch the remote/upstream content for a subrepo.
subrepo init [options] <subdir>
Turn an existing subdirectory into a subrepo.
--remote -r Specify remote repository --branch -b Upstream branch
subdir *
subrepo pull [options] [<subrepo>]
Update the subrepo subdir with the latest upstream changes.
--all All subrepos (flag) --branch -b Upstream branch --remote -r Specify remote repository --update -u update
subrepo push [options] [<subrepo>]
Push a properly merged subrepo branch back upstream.
subrepo status [options] [<subrepo>]
Get the status of a subrepo.
--quiet -q Just print names
subrepo version
display version information about git-subrepo
subrepo help
Same as git help subrepo
git help subrepo
To install App::Spec, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Spec
CPAN shell
perl -MCPAN -e shell install App::Spec
For more information on module installation, please visit the detailed CPAN module installation guide.