---
name: "hub-submodule"
section: "1"
platform: "linux"
package: "hub"
version: "2.14.2-4"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/hub-submodule"
---

# hub-submodule(1)

Add a git submodule for a GitHub repository.

## NAME

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

## SYNOPSIS

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

## EXAMPLES

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

## SEE ALSO

[hub-remote(1)](/hub-remote/1.md), [hub(1)](/hub/1.md), [git-submodule(1)](/git-submodule/1.md)
