forked from mislav/hub
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhub-init.1.html
More file actions
121 lines (107 loc) · 2.36 KB
/
hub-init.1.html
File metadata and controls
121 lines (107 loc) · 2.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<!doctype html>
<title>hub-init(1) - Initialize a git repository and add a remote pointing to GitHub.</title>
<meta charset="utf-8">
<style>
body {
margin: 0;
font: 15px/1.4 -apple-system,Segoe UI,Helvetica,Arial,sans-serif;
}
pre, code, var, dt, .man-head, [id="synopsis"] + p {
font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;
}
header, footer {
padding: .5em 2em;
}
.man-head {
color: #999;
padding: 0;
width: 100%;
float: left;
list-style-type: none;
}
header .man-head {
text-transform: uppercase;
}
.man-head li {
width: 33%;
float: left;
}
.tl { text-align: left }
.tc { text-align: center }
.tr { text-align: right; float: right }
article {
max-width: 110ex;
margin: 4em auto 2em;
}
h1 {
font-size: 1em;
font-weight: normal;
}
h2 {
text-transform: uppercase;
}
code {
color: darkslategray;
font-weight: bold;
}
var {
color: orangered;
font-weight: normal;
font-style: normal;
}
dt {
margin: .5em 0;
}
dd {
margin-bottom: 1em;
}
pre, [id="synopsis"] + p {
background: #eee;
padding: 1em 1.5em;
}
[id="synopsis"] + p {
white-space: nowrap;
overflow-x: auto;
}
pre code {
color: inherit;
font-weight: inherit;
}
var::before { content: "<" }
var::after { content: ">" }
a:link, a:hover, a:visited { color: blue }
</style>
<header>
<ol class="man-head">
<li class="tl">hub-init(1)</li>
<li class="tc">hub manual</li>
<li class="tr">hub-init(1)</li>
</ol>
</header>
<article>
<h1>Initialize a git repository and add a remote pointing to GitHub.</h1>
<h2 id="synopsis">Synopsis</h2>
<p><code>hub init</code> -g</p>
<h2 id="options">Options</h2>
<dl>
<dt>-g</dt>
<dd><p>After initializing the repository locally, add the "origin" remote pointing
to "<var>USER</var>/<var>REPO</var>" repository on GitHub.</p>
<p><var>USER</var> is your GitHub username, while <var>REPO</var> is the name of the current
working directory.</p></dd>
</dl>
<h2 id="examples">Examples</h2>
<pre><code>$ hub init -g
> git init
> git remote add origin git@github.com:USER/REPO.git
</code></pre>
<h2 id="see-also">See also</h2>
<p><a href="./hub-create.1.html">hub-create(1)</a>, <a href="./hub.1.html">hub(1)</a>, git-init(1)</p>
</article>
<footer>
<ol class="man-head">
<li class="tl">hub version 2.14.2</li>
<li class="tc">05 Mar 2020</li>
<li class="tr"></li>
</ol>
</footer>