DOKK / manpages / debian 10 / hub / hub-remote.1.en
HUB-REMOTE(1) Hub Manual HUB-REMOTE(1)

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

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

(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.
If USER is "origin", that value will be substituted for your GitHub username. REPOSITORY defaults to the name of the current working directory.

$ hub remote add jingweno
> git remote add jingweno git://github.com/jingweno/REPO.git
$ hub remote add origin
> git remote add origin git@github.com:USER/REPO.git

hub-fork(1), hub(1), git-remote(1)

March 2019 GITHUB