hub-remote - Man Page
Add a git remote for a GitHub repository.
Synopsis
hub remote
add [-p] [Options] USER[/REPOSITORY]hub remote
set-url [-p] [Options] NAME USER[/REPOSITORY]
Options
- -p
(Deprecated) Use the
ssh:
protocol instead ofgit:
for the remote URL. The writeablessh:
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 git@github.com:USER/REPO.git
See Also
Referenced By
hub(1), hub-fetch(1), hub-submodule(1).
18 Jul 2024 hub version 2.14.2 hub manual