1hub-init(1)                       hub manual                       hub-init(1)
2
3
4

NAME

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

SYNOPSIS

10       hub init -g
11

OPTIONS

13       -g
14           After initializing the repository locally, add the "origin" remote
15           pointing to "USER/REPO" repository on GitHub.
16
17           USER is your GitHub username, while REPO is the name of the current
18           working directory.
19

EXAMPLES

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

SEE ALSO

26       hub-create(1), hub(1), git-init(1)
27
28
29
30
31hub version 2.14.0                29 Jan 2020                      hub-init(1)
Impressum