.\" generated with Ronn-NG/v0.8.0 .\" http://github.com/apjanke/ronn-ng/tree/0.8.0 .TH "HUB\-INIT" "1" "March 2019" "GITHUB" "Hub Manual" .SH "NAME" \fBhub\-init\fR \- Initialize a git repository and add a remote pointing to GitHub\. .SH "SYNOPSIS" \fBhub init\fR \-g .SH "OPTIONS" .TP \-g After initializing the repository locally, add the "origin" remote pointing to "\fIUSER\fR/\fIREPO\fR" repository on GitHub\. .IP \fIUSER\fR is your GitHub username, while \fIREPO\fR is the name of the current working directory\. .SH "EXAMPLES" .nf $ hub init \-g > git init > git remote add origin git@github\.com:USER/REPO\.git .fi .SH "SEE ALSO" hub\-create(1), hub(1), git\-init(1)