hub.1 15.6 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" "October 2014" "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 140
.TP
\fBgit browse\fR [\fB\-u\fR] [[\fIUSER\fR\fB/\fR]\fIREPOSITORY\fR] [SUBPAGE]
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")\. 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 171 172
.IP
If \fB\-v\fR is given, additionally print the URL to CI build results\.
.
R
Ryan Tomayko 已提交
173
.SH "CONFIGURATION"
174
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 已提交
175 176
.
.P
177 178 179
To avoid being prompted, use \fIGITHUB_USER\fR and \fIGITHUB_PASSWORD\fR environment variables\.
.
.P
180
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\. "hub\.protocol" only applies when the "OWNER/REPO" shorthand is used instead of a full git URL\.
C
Chris Wanstrath 已提交
181 182 183 184
.
.IP "" 4
.
.nf
C
Chris Wanstrath 已提交
185

186
$ git config \-\-global hub\.protocol https
C
Chris Wanstrath 已提交
187 188 189 190
.
.fi
.
.IP "" 0
R
Ryan Tomayko 已提交
191
.
192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217
.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
The default host for commands like \fBinit\fR and \fBclone\fR is still github\.com, but this can be affected with the \fIGITHUB_HOST\fR environment variable:
.
.IP "" 4
.
.nf

$ GITHUB_HOST=my\.git\.org git clone myproject
.
.fi
.
.IP "" 0
.
C
Chris Wanstrath 已提交
218 219 220 221 222
.SH "EXAMPLES"
.
.SS "git clone"
.
.nf
C
Chris Wanstrath 已提交
223

224
$ git clone schacon/ticgit
225
> git clone git://github\.com/schacon/ticgit\.git
226 227

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

C
Chris Wanstrath 已提交
230
$ git clone resque
231
> git clone git@github\.com/YOUR_USER/resque\.git
C
Chris Wanstrath 已提交
232 233 234 235 236 237
.
.fi
.
.SS "git remote add"
.
.nf
C
Chris Wanstrath 已提交
238

239
$ git remote add rtomayko
240
> git remote add rtomayko git://github\.com/rtomayko/CURRENT_REPO\.git
241 242

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

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

$ git fetch mislav
255
> git remote add mislav git://github\.com/mislav/REPO\.git
256 257 258
> git fetch mislav

$ git fetch mislav,xoebus
259 260
> git remote add mislav \.\.\.
> git remote add xoebus \.\.\.
261 262 263 264
> git fetch \-\-multiple mislav xoebus
.
.fi
.
265 266 267 268
.SS "git cherry\-pick"
.
.nf

269 270
$ git cherry\-pick http://github\.com/mislav/REPO/commit/SHA
> git remote add \-f mislav git://github\.com/mislav/REPO\.git
271 272 273
> git cherry\-pick SHA

$ git cherry\-pick mislav@SHA
274
> git remote add \-f mislav git://github\.com/mislav/CURRENT_REPO\.git
275 276 277 278 279 280 281 282
> git cherry\-pick SHA

$ git cherry\-pick mislav@SHA
> git fetch mislav
> git cherry\-pick SHA
.
.fi
.
283
.SS "git am, git apply"
284 285 286 287
.
.nf

$ git am https://github\.com/defunkt/hub/pull/55
288
[ downloads patch via API ]
289 290 291
> git am /tmp/55\.patch

$ git am \-\-ignore\-whitespace https://github\.com/davidbalbert/hub/commit/fdb9921
292
[ downloads patch via API ]
293
> git am \-\-ignore\-whitespace /tmp/fdb9921\.patch
294 295

$ git apply https://gist\.github\.com/8da7fb575debd88c54cf
296
[ downloads patch via API ]
297
> git apply /tmp/gist\-8da7fb575debd88c54cf\.txt
298 299 300
.
.fi
.
301 302 303
.SS "git fork"
.
.nf
C
Chris Wanstrath 已提交
304

305
$ git fork
306
[ repo forked on GitHub ]
307
> git remote add \-f YOUR_USER git@github\.com:YOUR_USER/CURRENT_REPO\.git
C
Chris Wanstrath 已提交
308 309 310
.
.fi
.
311 312 313 314 315
.SS "git pull\-request"
.
.nf

# while on a topic branch called "feature":
316 317
$ git pull\-request
[ opens text editor to edit title & body for the request ]
318 319
[ opened pull request on GitHub for "YOUR_USER:feature" ]

320
# explicit title, pull base & head:
321
$ git pull\-request \-m "Implemented feature X" \-b defunkt:master \-h mislav:feature
322 323 324
.
.fi
.
325 326 327 328
.SS "git checkout"
.
.nf

329
$ git checkout https://github\.com/defunkt/hub/pull/73
330
> git remote add \-f \-t feature mislav git://github\.com/mislav/hub\.git
331 332 333 334 335 336 337 338 339
> 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
340

341 342 343
$ 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\.\.\.\'
344 345 346
.
.fi
.
C
Chris Wanstrath 已提交
347 348 349 350 351
.SS "git create"
.
.nf

$ git create
352
[ repo created on GitHub ]
353
> git remote add origin git@github\.com:YOUR_USER/CURRENT_REPO\.git
354 355 356 357 358 359 360 361 362 363 364

# 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 已提交
365 366 367
.
.fi
.
368 369 370 371 372 373 374 375 376 377
.SS "git init"
.
.nf

$ git init \-g
> git init
> git remote add origin git@github\.com:YOUR_USER/REPO\.git
.
.fi
.
C
Chris Wanstrath 已提交
378 379 380
.SS "git push"
.
.nf
C
Chris Wanstrath 已提交
381

382
$ git push origin,staging,qa bert_timeout
C
Chris Wanstrath 已提交
383 384
> git push origin bert_timeout
> git push staging bert_timeout
385
> git push qa bert_timeout
C
Chris Wanstrath 已提交
386 387 388
.
.fi
.
C
Chris Wanstrath 已提交
389 390 391
.SS "git browse"
.
.nf
C
Chris Wanstrath 已提交
392

393
$ git browse
J
Justin Quick 已提交
394
> open https://github\.com/YOUR_USER/CURRENT_REPO
395

396 397 398
$ git browse \-\- commit/SHA
> open https://github\.com/YOUR_USER/CURRENT_REPO/commit/SHA

399
$ git browse \-\- issues
J
Justin Quick 已提交
400
> open https://github\.com/YOUR_USER/CURRENT_REPO/issues
401

402 403 404
$ git browse \-\- issues/10
> open https://github\.com/YOUR_USER/CURRENT_REPO/issues/10

405
$ git browse schacon/ticgit
406
> open https://github\.com/schacon/ticgit
C
Chris Wanstrath 已提交
407

408 409 410
$ git browse schacon/ticgit commit/SHA
> open https://github\.com/schacon/ticgit/commit/SHA

C
Chris Wanstrath 已提交
411
$ git browse resque
412
> open https://github\.com/YOUR_USER/resque
C
Chris Wanstrath 已提交
413

414
$ git browse resque network
415
> open https://github\.com/YOUR_USER/resque/network
416 417 418 419 420 421 422 423
.
.fi
.
.SS "git compare"
.
.nf

$ git compare refactor
424
> open https://github\.com/CURRENT_REPO/compare/refactor
425

426
$ git compare 1\.0\.\.1\.1
427
> open https://github\.com/CURRENT_REPO/compare/1\.0\.\.\.1\.1
428 429

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

432
$ git compare other\-user patch
433
> open https://github\.com/other\-user/REPO/compare/patch
C
Chris Wanstrath 已提交
434 435 436
.
.fi
.
437 438 439 440
.SS "git submodule"
.
.nf

M
Mislav Marohnić 已提交
441
$ git submodule add wycats/bundler vendor/bundler
442 443
> git submodule add git://github\.com/wycats/bundler\.git vendor/bundler

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

M
Mislav Marohnić 已提交
447
$ git submodule add \-b ryppl \-\-name pip ryppl/pip vendor/pip
M
Mislav Marohnić 已提交
448
> git submodule add \-b ryppl \-\-name pip git://github\.com/ryppl/pip\.git vendor/pip
449 450 451
.
.fi
.
M
Mislav Marohnić 已提交
452 453 454 455
.SS "git ci\-status"
.
.nf

M
Mislav Marohnić 已提交
456
$ git ci\-status [commit]
M
Mislav Marohnić 已提交
457 458 459 460 461
> (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 已提交
462 463 464
.SS "git help"
.
.nf
C
Chris Wanstrath 已提交
465

466
$ git help
C
Chris Wanstrath 已提交
467 468
> (improved git help)
$ git help hub
469
> (hub man page)
C
Chris Wanstrath 已提交
470 471 472
.
.fi
.
R
Ryan Tomayko 已提交
473
.SH "BUGS"
M
Mislav Marohnić 已提交
474
\fIhttps://github\.com/github/hub/issues\fR
R
Ryan Tomayko 已提交
475
.
476
.SH "AUTHORS"
M
Mislav Marohnić 已提交
477
\fIhttps://github\.com/github/hub/contributors\fR
R
Ryan Tomayko 已提交
478 479
.
.SH "SEE ALSO"
M
Mislav Marohnić 已提交
480
git(1), git\-clone(1), git\-remote(1), git\-init(1), \fIhttp://github\.com\fR, \fIhttps://github\.com/github/hub\fR