hub-init(1)

πŸ’… hub-init(1) β€” the hub manual, bestie edition ✨

okay so real talk, this is the hub-init page from the hub manual, and it's literally the glow-up your empty folder has been waiting for. slay.


🌸 NAME 🌸

hub-init β€” initialize a git repository and add a remote pointing to GitHub. no cap, that's the whole vibe. πŸŽ€


✨ SYNOPSIS ✨

hub init -g

that's it. that's the line. iconic.


πŸ’… OPTIONS πŸ’…

  • -g β€” okay so after you've initialized the repository locally, this adds the "origin" remote pointing to the "USER/REPO" repository on GitHub. yes bestie, remote acquired. 🫢

oh and btw, USER is your GitHub username, while REPO is the name of the current working directory. so like, name your folder good, iykyk. πŸ’€


πŸ¦‹ EXAMPLES πŸ¦‹

$ hub init -g
> git init
> git remote add origin git@github.com:USER/REPO.git

look at it go 😭 it's giving "everything handled" energy. periodt. πŸ”₯


🌈 SEE ALSO 🌈

go read those too, bestie, they're lowkey obsessed with being helpful. πŸ’œ


mwah πŸ’‹ this page came to you courtesy of hub version 2.14.2, dated 07 Jan 2024 β€” catch you in the group chat, bestie 🧚✨

πŸ“¦ where this page comes from