Text of hub.github.com › hub-init.1.html as Styx crawled it on Nov 18, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

hub-init(1) - Initialize a git repository and add a remote pointing to GitHub.

Initialize a git repository and add a remote pointing to GitHub. Synopsis hub init -g Options -g After initializing the repository locally, add the "origin" remote pointing to " USER / REPO " repository on GitHub. USER is your GitHub username, while REPO is the name of the current working directory. Examples $ hub init -g > git init > git remote add origin git@github.com:USER/REPO.git See also hub-create(1) , hub(1) , git-init(1)