DOKK / manpages / debian 10 / hub / hub-init.1.en
HUB-INIT(1) Hub Manual HUB-INIT(1)

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

hub init -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.

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

hub-create(1), hub(1), git-init(1)

March 2019 GITHUB