hub-submodule(1) hub manual hub-submodule(1)

hub-submodule - Add a git submodule for a GitHub repository.

hub submodule add [-p] [OPTIONS] [USER/]REPOSITORY DESTINATION

$ hub submodule add jingweno/gh vendor/gh
> git submodule add git://github.com/jingweno/gh.git vendor/gh

hub-remote(1), hub(1), git-submodule(1)
17 Apr 2021 hub version 2.14.2