1hub-remote(1) hub manual hub-remote(1)
2
3
4
6 hub-remote - Add a git remote for a GitHub repository.
7
9 hub remote add [-p] [OPTIONS] USER[/REPOSITORY]
10 hub remote set-url [-p] [OPTIONS] NAME USER[/REPOSITORY]
11
13 -p
14 (Deprecated) Use the ssh: protocol instead of git: for the remote
15 URL. The writeable ssh: protocol is automatically used for own
16 repos, GitHub Enterprise remotes, and private or pushable
17 repositories.
18
19 USER[/REPOSITORY]
20 If USER is "origin", that value will be substituted for your GitHub
21 username. REPOSITORY defaults to the name of the current working
22 directory.
23
25 $ hub remote add jingweno
26 > git remote add jingweno git://github.com/jingweno/REPO.git
27
28 $ hub remote add origin
29 > git remote add origin git@github.com:USER/REPO.git
30
32 hub-fork(1), hub(1), git-remote(1)
33
34
35
36
37hub version 2.14.2 22 Jul 2021 hub-remote(1)