hub-remote(1)

✨ NAME ✨

okay so hub-remote(1) β€” straight outta the hub manual β€” is literally here to add a git remote for a GitHub repository. that's the whole vibe: git remote, GitHub repo, slay πŸ’….


πŸ› οΈ SYNOPSIS πŸ› οΈ

the two moods, bestie:

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

🌸 OPTIONS 🌸

  • -p β€” deprecated, bestie β€” 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. so yeah, it's giving "still here, but not the main character" 😭.
  • 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. periodt πŸŽ€.

πŸŽ€ EXAMPLES πŸŽ€

look at these little icons doing their thing:

$ 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

no cap, that second one is especially iconic 🌈.


πŸ‘€ SEE ALSO πŸ‘€


okay that's the whole page, bestie 🫢 β€” brought to you by hub version 2.14.2, dated 07 Jan 2024 πŸ’–βœ¨.

πŸ“¦ where this page comes from