hub.1 16.1 KB
Newer Older
1 2
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
R
Ryan Tomayko 已提交
3
.
4
.TH "HUB" "1" "November 2016" "GITHUB" "Hub Manual"
R
Ryan Tomayko 已提交
5 6
.
.SH "NAME"
C
Chris Wanstrath 已提交
7
\fBhub\fR \- git + hub = github
R
Ryan Tomayko 已提交
8 9
.
.SH "SYNOPSIS"
10
\fBhub\fR [\fB\-\-noop\fR] \fICOMMAND\fR \fIOPTIONS\fR
11 12
.
.br
13
\fBhub alias\fR [\fB\-s\fR] [\fISHELL\fR]
C
0.3.1  
Chris Wanstrath 已提交
14
.
15
.SS "Expanded git commands:"
16
\fBgit init \-g\fR \fIOPTIONS\fR
C
0.3.1  
Chris Wanstrath 已提交
17 18
.
.br
19
\fBgit clone\fR [\fB\-p\fR] \fIOPTIONS\fR [\fIUSER\fR/]\fIREPOSITORY\fR \fIDIRECTORY\fR
R
Ryan Tomayko 已提交
20
.
C
Chris Wanstrath 已提交
21
.br
22
\fBgit remote add\fR [\fB\-p\fR] \fIOPTIONS\fR \fIUSER\fR[/\fIREPOSITORY\fR]
C
0.3.1  
Chris Wanstrath 已提交
23 24
.
.br
C
Chris Wanstrath 已提交
25 26 27
\fBgit remote set\-url\fR [\fB\-p\fR] \fIOPTIONS\fR \fIREMOTE\-NAME\fR \fIUSER\fR[/\fIREPOSITORY\fR]
.
.br
28
\fBgit fetch\fR \fIUSER\-1\fR,[\fIUSER\-2\fR,\.\.\.]
29 30
.
.br
31 32 33
\fBgit checkout\fR \fIPULLREQ\-URL\fR [\fIBRANCH\fR]
.
.br
34 35 36
\fBgit merge\fR \fIPULLREQ\-URL\fR
.
.br
37 38 39
\fBgit cherry\-pick\fR \fIGITHUB\-REF\fR
.
.br
40 41 42
\fBgit am\fR \fIGITHUB\-URL\fR
.
.br
43 44 45
\fBgit apply\fR \fIGITHUB\-URL\fR
.
.br
46
\fBgit push\fR \fIREMOTE\-1\fR,\fIREMOTE\-2\fR,\.\.\.,\fIREMOTE\-N\fR [\fIREF\fR]
C
0.3.1  
Chris Wanstrath 已提交
47 48
.
.br
49 50 51 52
\fBgit submodule add\fR [\fB\-p\fR] \fIOPTIONS\fR [\fIUSER\fR/]\fIREPOSITORY\fR \fIDIRECTORY\fR
.
.SS "Custom git commands:"
\fBgit create\fR [\fINAME\fR] [\fB\-p\fR] [\fB\-d\fR \fIDESCRIPTION\fR] [\fB\-h\fR \fIHOMEPAGE\fR]
C
0.3.1  
Chris Wanstrath 已提交
53 54
.
.br
55
\fBgit browse\fR [\fB\-u\fR] [[\fIUSER\fR\fB/\fR]\fIREPOSITORY\fR] [SUBPAGE]
C
0.3.1  
Chris Wanstrath 已提交
56 57
.
.br
58
\fBgit compare\fR [\fB\-u\fR] [\fIUSER\fR] [[\fISTART\fR\.\.\.]\fIEND\fR]
R
Ryan Tomayko 已提交
59
.
60 61 62
.br
\fBgit fork\fR [\fB\-\-no\-remote\fR]
.
63
.br
64
\fBgit pull\-request\fR [\fB\-o\fR|\fB\-\-browse\fR] [\fB\-f\fR] [\fB\-m\fR \fIMESSAGE\fR|\fB\-F\fR \fIFILE\fR|\fB\-i\fR \fIISSUE\fR|\fIISSUE\-URL\fR] [\fB\-b\fR \fIBASE\fR] [\fB\-h\fR \fIHEAD\fR]
65
.
M
Mislav Marohnić 已提交
66
.br
67
\fBgit ci\-status\fR [\fB\-v\fR] [\fICOMMIT\fR]
M
Mislav Marohnić 已提交
68
.
R
Ryan Tomayko 已提交
69
.SH "DESCRIPTION"
70
hub enhances various git commands to ease most common workflows with GitHub\.
R
Ryan Tomayko 已提交
71
.
72 73 74
.TP
\fBhub \-\-noop\fR \fICOMMAND\fR
Shows which command(s) would be run as a result of the current command\. Doesn\'t perform anything\.
75
.
76
.TP
77 78
\fBhub alias\fR [\fB\-s\fR] [\fISHELL\fR]
Shows shell instructions for wrapping git\. If given, \fISHELL\fR specifies the type of shell; otherwise defaults to the value of SHELL environment variable\. With \fB\-s\fR, outputs shell script suitable for \fBeval\fR\.
R
Ryan Tomayko 已提交
79
.
80 81 82
.TP
\fBgit init\fR \fB\-g\fR \fIOPTIONS\fR
Create a git repository as with git\-init(1) and add remote \fBorigin\fR at "git@github\.com:\fIUSER\fR/\fIREPOSITORY\fR\.git"; \fIUSER\fR is your GitHub username and \fIREPOSITORY\fR is the current working directory\'s basename\.
C
Chris Wanstrath 已提交
83
.
84 85
.TP
\fBgit clone\fR [\fB\-p\fR] \fIOPTIONS\fR [\fIUSER\fR\fB/\fR]\fIREPOSITORY\fR \fIDIRECTORY\fR
M
Mislav Marohnić 已提交
86 87 88 89
Clone repository "git://github\.com/\fIUSER\fR/\fIREPOSITORY\fR\.git" into \fIDIRECTORY\fR as with git\-clone(1)\. When \fIUSER\fR/ is omitted, assumes your GitHub login\.
.
.IP
If the repository is private or the current user has push access to the repository, hub will use the ssh protocol for cloning\. Use \fB\-p\fR to select the ssh protocol unconditionally\. HTTPS protocol can be used instead by setting "hub\.protocol" (see \fICONFIGURATION\fR)\.
R
Ryan Tomayko 已提交
90
.
91 92
.TP
\fBgit remote add\fR [\fB\-p\fR] \fIOPTIONS\fR \fIUSER\fR[\fB/\fR\fIREPOSITORY\fR]
M
Mislav Marohnić 已提交
93
Add remote "git://github\.com/\fIUSER\fR/\fIREPOSITORY\fR\.git" as with git\-remote(1)\. When /\fIREPOSITORY\fR is omitted, the basename of the current working directory is used\. With \fB\-p\fR, use private remote "git@github\.com:\fIUSER\fR/\fIREPOSITORY\fR\.git"\. If \fIUSER\fR is "origin" then uses your GitHub login\.
R
Ryan Tomayko 已提交
94
.
95
.TP
C
Chris Wanstrath 已提交
96
\fBgit remote set\-url\fR [\fB\-p\fR] \fIOPTIONS\fR \fIREMOTE\-NAME\fR \fIUSER\fR[/\fIREPOSITORY\fR]
97 98
Sets the url of remote \fIREMOTE\-NAME\fR using the same rules as \fBgit remote add\fR\.
.
99 100 101
.TP
\fBgit fetch\fR \fIUSER\-1\fR,[\fIUSER\-2\fR,\.\.\.]
Adds missing remote(s) with \fBgit remote add\fR prior to fetching\. New remotes are only added if they correspond to valid forks on GitHub\.
C
Chris Wanstrath 已提交
102
.
103 104 105
.TP
\fBgit checkout\fR \fIPULLREQ\-URL\fR [\fIBRANCH\fR]
Checks out the head of the pull request as a local branch, to allow for reviewing, rebasing and otherwise cleaning up the commits in the pull request before merging\. The name of the local branch can explicitly be set with \fIBRANCH\fR\.
106
.
107
.TP
J
John Firebaugh 已提交
108
\fBgit merge\fR \fIPULLREQ\-URL\fR
109
Merge the pull request with a commit message that includes the pull request ID and title, similar to the GitHub Merge Button\.
J
John Firebaugh 已提交
110 111
.
.TP
112 113
\fBgit cherry\-pick\fR \fIGITHUB\-REF\fR
Cherry\-pick a commit from a fork using either full URL to the commit or GitHub\-flavored Markdown notation, which is \fBuser@sha\fR\. If the remote doesn\'t yet exist, it will be added\. A \fBgit fetch <user>\fR is issued prior to the cherry\-pick attempt\.
114
.
115 116 117
.TP
\fBgit [am|apply]\fR \fIGITHUB\-URL\fR
Downloads the patch file for the pull request or commit at the URL and applies that patch from disk with \fBgit am\fR or \fBgit apply\fR\. Similar to \fBcherry\-pick\fR, but doesn\'t add new remotes\. \fBgit am\fR creates commits while preserving authorship info while \fBapply\fR only applies the patch to the working copy\.
118
.
119 120 121
.TP
\fBgit push\fR \fIREMOTE\-1\fR,\fIREMOTE\-2\fR,\.\.\.,\fIREMOTE\-N\fR [\fIREF\fR]
Push \fIREF\fR to each of \fIREMOTE\-1\fR through \fIREMOTE\-N\fR by executing multiple \fBgit push\fR commands\.
122
.
123 124 125
.TP
\fBgit submodule add\fR [\fB\-p\fR] \fIOPTIONS\fR [\fIUSER\fR/]\fIREPOSITORY\fR \fIDIRECTORY\fR
Submodule repository "git://github\.com/\fIUSER\fR/\fIREPOSITORY\fR\.git" into \fIDIRECTORY\fR as with git\-submodule(1)\. When \fIUSER\fR/ is omitted, assumes your GitHub login\. With \fB\-p\fR, use private remote "git@github\.com:\fIUSER\fR/\fIREPOSITORY\fR\.git"\.
C
Chris Wanstrath 已提交
126
.
127 128 129
.TP
\fBgit help\fR
Display enhanced git\-help(1)\.
C
Chris Wanstrath 已提交
130
.
131 132
.P
hub also adds some custom commands that are otherwise not present in git:
M
Mislav Marohnić 已提交
133
.
134 135 136
.TP
\fBgit create\fR [\fINAME\fR] [\fB\-p\fR] [\fB\-d\fR \fIDESCRIPTION\fR] [\fB\-h\fR \fIHOMEPAGE\fR]
Create a new public GitHub repository from the current git repository and add remote \fBorigin\fR at "git@github\.com:\fIUSER\fR/\fIREPOSITORY\fR\.git"; \fIUSER\fR is your GitHub username and \fIREPOSITORY\fR is the current working directory name\. To explicitly name the new repository, pass in \fINAME\fR, optionally in \fIORGANIZATION\fR/\fINAME\fR form to create under an organization you\'re a member of\. With \fB\-p\fR, create a private repository, and with \fB\-d\fR and \fB\-h\fR set the repository\'s description and homepage URL, respectively\.
137
.
138 139
.TP
\fBgit browse\fR [\fB\-u\fR] [[\fIUSER\fR\fB/\fR]\fIREPOSITORY\fR] [SUBPAGE]
D
Daniel Hahler 已提交
140
Open repository\'s GitHub page in the system\'s default web browser using \fBopen(1)\fR or the \fBBROWSER\fR env variable\. If the repository isn\'t specified, \fBbrowse\fR opens the page of the repository found in the current directory\. If SUBPAGE is specified, the browser will open on the specified subpage: one of "wiki", "commits", "issues" or other (the default is "tree")\. A specific commit in the default repository can be opened with \fBgit browse \-\- commit/<COMMIT>\fR\. With \fB\-u\fR, outputs the URL rather than opening the browser\.
141
.
142
.TP
143 144
\fBgit compare\fR [\fB\-u\fR] [\fIUSER\fR] [[\fISTART\fR\.\.\.]\fIEND\fR]
Open a GitHub compare view page in the system\'s default web browser\. \fISTART\fR to \fIEND\fR are branch names, tag names, or commit SHA1s specifying the range of history to compare\. If a range with two dots (\fBa\.\.b\fR) is given, it will be transformed into one with three dots\. If \fISTART\fR is omitted, GitHub will compare against the base branch (the default is "master")\. If \fIEND\fR is omitted, GitHub compare view is opened for the current branch\. With \fB\-u\fR, outputs the URL rather than opening the browser\.
145
.
146 147 148
.TP
\fBgit fork\fR [\fB\-\-no\-remote\fR]
Forks the original project (referenced by "origin" remote) on GitHub and adds a new remote for it under your username\.
149
.
150
.TP
151
\fBgit pull\-request\fR [\fB\-o\fR|\fB\-\-browse\fR] [\fB\-f\fR] [\fB\-m\fR \fIMESSAGE\fR|\fB\-F\fR \fIFILE\fR|\fB\-i\fR \fIISSUE\fR|\fIISSUE\-URL\fR] [\fB\-b\fR \fIBASE\fR] [\fB\-h\fR \fIHEAD\fR]
M
Mislav Marohnić 已提交
152
Opens a pull request on GitHub for the project that the "origin" remote points to\. The default head of the pull request is the current branch\. Both base and head of the pull request can be explicitly given in one of the following formats: "branch", "owner:branch", "owner/repo:branch"\. This command will abort operation if it detects that the current topic branch has local commits that are not yet pushed to its upstream branch on the remote\. To skip this check, use \fB\-f\fR\.
153 154
.
.IP
155
Without \fIMESSAGE\fR or \fIFILE\fR, a text editor will open in which title and body of the pull request can be entered in the same manner as git commit message\. Pull request message can also be passed via stdin with \fB\-F \-\fR\.
156 157
.
.IP
158 159 160
With \fB\-o\fR or \fB\-\-browse\fR, the new pull request will open in the web browser\.
.
.IP
161
Issue to pull request conversion via \fB\-i <ISSUE>\fR or \fIISSUE\-URL\fR arguments is deprecated and will likely be removed from the future versions of both hub and GitHub API\.
162
.
163
.TP
164
\fBgit ci\-status\fR [\fB\-v\fR] [\fICOMMIT\fR]
165
Looks up the SHA for \fICOMMIT\fR in GitHub Status API and displays the latest status\. Exits with one of:
M
Mislav Marohnić 已提交
166 167 168 169
.
.br
success (0), error (1), failure (1), pending (2), no status (3)
.
170
.IP
171
If \fB\-v\fR is given, additionally print detailed report of all checks and their URLs\.
172
.
R
Ryan Tomayko 已提交
173
.SH "CONFIGURATION"
174 175
.
.SS "GitHub OAuth authentication"
176
Hub will prompt for GitHub username & password the first time it needs to access the API and exchange it for an OAuth token, which it saves in "~/\.config/hub"\.
C
Chris Wanstrath 已提交
177 178
.
.P
179 180
To avoid being prompted, use \fIGITHUB_USER\fR and \fIGITHUB_PASSWORD\fR environment variables\.
.
181 182 183
.P
Alternatively, you may provide \fIGITHUB_TOKEN\fR, an access token with \fIrepo\fR permissions\. This will not be written to \fB~/\.config/hub\fR\.
.
184 185 186
.SS "HTTPS instead of git protocol"
If you prefer the HTTPS protocol for GitHub repositories, you can set "hub\.protocol" to "https"\. This will affect \fBclone\fR, \fBfork\fR, \fBremote add\fR and other operations that expand references to GitHub repositories as full URLs that otherwise use git and ssh protocols\.
.
187
.P
188
"hub\.protocol" only applies when the "OWNER/REPO" shorthand is used instead of a full git URL\.
C
Chris Wanstrath 已提交
189 190 191 192
.
.IP "" 4
.
.nf
C
Chris Wanstrath 已提交
193

194 195 196 197 198
# default behavior
$ git clone defunkt/repl
< git clone >

# opt into HTTPS:
199
$ git config \-\-global hub\.protocol https
200 201
$ git clone defunkt/repl
< https clone >
C
Chris Wanstrath 已提交
202 203 204 205
.
.fi
.
.IP "" 0
R
Ryan Tomayko 已提交
206
.
207 208 209 210 211 212 213 214 215 216 217 218 219 220
.SS "GitHub Enterprise"
By default, hub will only work with repositories that have remotes which point to github\.com\. GitHub Enterprise hosts need to be whitelisted to configure hub to treat such remotes same as github\.com:
.
.IP "" 4
.
.nf

$ git config \-\-global \-\-add hub\.host my\.git\.org
.
.fi
.
.IP "" 0
.
.P
D
Daniel Hahler 已提交
221
The default host for commands like \fBinit\fR and \fBclone\fR is still github\.com, but this can be affected with the \fBGITHUB_HOST\fR environment variable:
222 223 224 225 226 227 228 229 230 231 232
.
.IP "" 4
.
.nf

$ GITHUB_HOST=my\.git\.org git clone myproject
.
.fi
.
.IP "" 0
.
C
Chris Wanstrath 已提交
233 234 235 236 237
.SH "EXAMPLES"
.
.SS "git clone"
.
.nf
C
Chris Wanstrath 已提交
238

239
$ git clone schacon/ticgit
240
> git clone git://github\.com/schacon/ticgit\.git
241 242

$ git clone \-p schacon/ticgit
243
> git clone git@github\.com:schacon/ticgit\.git
C
Chris Wanstrath 已提交
244

C
Chris Wanstrath 已提交
245
$ git clone resque
246
> git clone git@github\.com:YOUR_USER/resque\.git
C
Chris Wanstrath 已提交
247 248 249 250 251 252
.
.fi
.
.SS "git remote add"
.
.nf
C
Chris Wanstrath 已提交
253

254
$ git remote add rtomayko
255
> git remote add rtomayko git://github\.com/rtomayko/CURRENT_REPO\.git
256 257

$ git remote add \-p rtomayko
258
> git remote add rtomayko git@github\.com:rtomayko/CURRENT_REPO\.git
C
Chris Wanstrath 已提交
259

C
Chris Wanstrath 已提交
260
$ git remote add origin
261
> git remote add origin git://github\.com/YOUR_USER/CURRENT_REPO\.git
C
Chris Wanstrath 已提交
262 263 264
.
.fi
.
265 266 267 268 269
.SS "git fetch"
.
.nf

$ git fetch mislav
270
> git remote add mislav git://github\.com/mislav/REPO\.git
271 272 273
> git fetch mislav

$ git fetch mislav,xoebus
274 275
> git remote add mislav \.\.\.
> git remote add xoebus \.\.\.
276 277 278 279
> git fetch \-\-multiple mislav xoebus
.
.fi
.
280 281 282 283
.SS "git cherry\-pick"
.
.nf

284
$ git cherry\-pick http://github\.com/mislav/REPO/commit/SHA
285
> git remote add \-f \-\-no\-tags mislav git://github\.com/mislav/REPO\.git
286 287 288
> git cherry\-pick SHA

$ git cherry\-pick mislav@SHA
289
> git remote add \-f \-\-no\-tags mislav git://github\.com/mislav/CURRENT_REPO\.git
290 291 292 293 294 295 296 297
> git cherry\-pick SHA

$ git cherry\-pick mislav@SHA
> git fetch mislav
> git cherry\-pick SHA
.
.fi
.
298
.SS "git am, git apply"
299 300 301 302
.
.nf

$ git am https://github\.com/defunkt/hub/pull/55
303
[ downloads patch via API ]
304 305 306
> git am /tmp/55\.patch

$ git am \-\-ignore\-whitespace https://github\.com/davidbalbert/hub/commit/fdb9921
307
[ downloads patch via API ]
308
> git am \-\-ignore\-whitespace /tmp/fdb9921\.patch
309 310

$ git apply https://gist\.github\.com/8da7fb575debd88c54cf
311
[ downloads patch via API ]
312
> git apply /tmp/gist\-8da7fb575debd88c54cf\.txt
313 314 315
.
.fi
.
316 317 318
.SS "git fork"
.
.nf
C
Chris Wanstrath 已提交
319

320
$ git fork
321
[ repo forked on GitHub ]
322
> git remote add \-f YOUR_USER git@github\.com:YOUR_USER/CURRENT_REPO\.git
C
Chris Wanstrath 已提交
323 324 325
.
.fi
.
326 327 328 329 330
.SS "git pull\-request"
.
.nf

# while on a topic branch called "feature":
331 332
$ git pull\-request
[ opens text editor to edit title & body for the request ]
333 334
[ opened pull request on GitHub for "YOUR_USER:feature" ]

335
# explicit title, pull base & head:
336
$ git pull\-request \-m "Implemented feature X" \-b defunkt:master \-h mislav:feature
337 338 339
.
.fi
.
340 341 342 343
.SS "git checkout"
.
.nf

344
$ git checkout https://github\.com/defunkt/hub/pull/73
345
> git remote add \-f \-\-no\-tags \-t feature mislav git://github\.com/mislav/hub\.git
346 347 348 349 350 351 352 353 354
> git checkout \-\-track \-B mislav\-feature mislav/feature

$ git checkout https://github\.com/defunkt/hub/pull/73 custom\-branch\-name
.
.fi
.
.SS "git merge"
.
.nf
355

356 357 358
$ git merge https://github\.com/defunkt/hub/pull/73
> git fetch git://github\.com/mislav/hub\.git +refs/heads/feature:refs/remotes/mislav/feature
> git merge mislav/feature \-\-no\-ff \-m \'Merge pull request #73 from mislav/feature\.\.\.\'
359 360 361
.
.fi
.
C
Chris Wanstrath 已提交
362 363 364 365 366
.SS "git create"
.
.nf

$ git create
367
[ repo created on GitHub ]
368
> git remote add origin git@github\.com:YOUR_USER/CURRENT_REPO\.git
369 370 371 372 373 374 375 376 377 378 379

# with description:
$ git create \-d \'It shall be mine, all mine!\'

$ git create recipes
[ repo created on GitHub ]
> git remote add origin git@github\.com:YOUR_USER/recipes\.git

$ git create sinatra/recipes
[ repo created in GitHub organization ]
> git remote add origin git@github\.com:sinatra/recipes\.git
C
Chris Wanstrath 已提交
380 381 382
.
.fi
.
383 384 385 386 387 388 389 390 391 392
.SS "git init"
.
.nf

$ git init \-g
> git init
> git remote add origin git@github\.com:YOUR_USER/REPO\.git
.
.fi
.
C
Chris Wanstrath 已提交
393 394 395
.SS "git push"
.
.nf
C
Chris Wanstrath 已提交
396

397
$ git push origin,staging,qa bert_timeout
C
Chris Wanstrath 已提交
398 399
> git push origin bert_timeout
> git push staging bert_timeout
400
> git push qa bert_timeout
C
Chris Wanstrath 已提交
401 402 403
.
.fi
.
C
Chris Wanstrath 已提交
404 405 406
.SS "git browse"
.
.nf
C
Chris Wanstrath 已提交
407

408
$ git browse
J
Justin Quick 已提交
409
> open https://github\.com/YOUR_USER/CURRENT_REPO
410

411 412 413
$ git browse \-\- commit/SHA
> open https://github\.com/YOUR_USER/CURRENT_REPO/commit/SHA

414
$ git browse \-\- issues
J
Justin Quick 已提交
415
> open https://github\.com/YOUR_USER/CURRENT_REPO/issues
416

417 418 419
$ git browse \-\- issues/10
> open https://github\.com/YOUR_USER/CURRENT_REPO/issues/10

420
$ git browse schacon/ticgit
421
> open https://github\.com/schacon/ticgit
C
Chris Wanstrath 已提交
422

423 424 425
$ git browse schacon/ticgit commit/SHA
> open https://github\.com/schacon/ticgit/commit/SHA

C
Chris Wanstrath 已提交
426
$ git browse resque
427
> open https://github\.com/YOUR_USER/resque
C
Chris Wanstrath 已提交
428

429
$ git browse resque network
430
> open https://github\.com/YOUR_USER/resque/network
431 432 433 434 435 436 437 438
.
.fi
.
.SS "git compare"
.
.nf

$ git compare refactor
439
> open https://github\.com/CURRENT_REPO/compare/refactor
440

441
$ git compare 1\.0\.\.1\.1
442
> open https://github\.com/CURRENT_REPO/compare/1\.0\.\.\.1\.1
443 444

$ git compare \-u fix
445
> (https://github\.com/CURRENT_REPO/compare/fix)
446

447
$ git compare other\-user patch
448
> open https://github\.com/other\-user/REPO/compare/patch
C
Chris Wanstrath 已提交
449 450 451
.
.fi
.
452 453 454 455
.SS "git submodule"
.
.nf

M
Mislav Marohnić 已提交
456
$ git submodule add wycats/bundler vendor/bundler
457 458
> git submodule add git://github\.com/wycats/bundler\.git vendor/bundler

M
Mislav Marohnić 已提交
459
$ git submodule add \-p wycats/bundler vendor/bundler
460 461
> git submodule add git@github\.com:wycats/bundler\.git vendor/bundler

M
Mislav Marohnić 已提交
462
$ git submodule add \-b ryppl \-\-name pip ryppl/pip vendor/pip
M
Mislav Marohnić 已提交
463
> git submodule add \-b ryppl \-\-name pip git://github\.com/ryppl/pip\.git vendor/pip
464 465 466
.
.fi
.
M
Mislav Marohnić 已提交
467 468 469 470
.SS "git ci\-status"
.
.nf

M
Mislav Marohnić 已提交
471
$ git ci\-status [commit]
M
Mislav Marohnić 已提交
472 473 474 475 476
> (prints CI state of commit and exits with appropriate code)
> One of: success (0), error (1), failure (1), pending (2), no status (3)
.
.fi
.
C
Chris Wanstrath 已提交
477 478 479
.SS "git help"
.
.nf
C
Chris Wanstrath 已提交
480

481
$ git help
C
Chris Wanstrath 已提交
482 483
> (improved git help)
$ git help hub
484
> (hub man page)
C
Chris Wanstrath 已提交
485 486 487
.
.fi
.
R
Ryan Tomayko 已提交
488
.SH "BUGS"
M
Mislav Marohnić 已提交
489
\fIhttps://github\.com/github/hub/issues\fR
R
Ryan Tomayko 已提交
490
.
491
.SH "AUTHORS"
M
Mislav Marohnić 已提交
492
\fIhttps://github\.com/github/hub/contributors\fR
R
Ryan Tomayko 已提交
493 494
.
.SH "SEE ALSO"
M
Mislav Marohnić 已提交
495
git(1), git\-clone(1), git\-remote(1), git\-init(1), \fIhttp://github\.com\fR, \fIhttps://github\.com/github/hub\fR