hub-remote(1)

hub-remote1

Add a git remote for a github repository.

Usage

hub remote add [-p] [OPTIONS] USER [/REPOSITORY]

hub remote set-url [-p] [OPTIONS] NAME USER [/REPOSITORY]

Options

-p

(Deprecated) Use the ssh: protocol instead of git: for the remote URL. The writeable ssh: protocol is automatically used for own repos, GitHub Enterprise remotes, and private or pushable repositories.

USER[/REPOSITORY]

If USER is "origin", that value will be substituted for your GitHub username. REPOSITORY defaults to the name of the current working directory.

Examples

$ hub remote add jingweno
> git remote add jingweno git://github.com/jingweno/REPO.git
$ hub remote add origin
> git remote add origin [email protected]:USER/REPO.git

Releases

5 releases since Debian 10 (Buster); the text changed 4 times.

  1. 10
  2. 11
  3. 12
  4. 13
  5. Arch

From hub 2.14.2-4 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.