提交 162a9a9f 编写于 作者: M Mislav Marohnić

Regenerate man pages with information about GITHUB_TOKEN

上级 80948b06
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "HUB" "1" "January 2015" "GITHUB" "Hub Manual"
.TH "HUB" "1" "November 2016" "GITHUB" "Hub Manual"
.
.SH "NAME"
\fBhub\fR \- git + hub = github
......@@ -178,6 +178,9 @@ Hub will prompt for GitHub username & password the first time it needs to access
.P
To avoid being prompted, use \fIGITHUB_USER\fR and \fIGITHUB_PASSWORD\fR environment variables\.
.
.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\.
.
.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\.
.
......
......@@ -222,6 +222,9 @@ the API and exchange it for an OAuth token, which it saves in "~/.config/hub".</
<p>To avoid being prompted, use <var>GITHUB_USER</var> and <var>GITHUB_PASSWORD</var> environment
variables.</p>
<p>Alternatively, you may provide <var>GITHUB_TOKEN</var>, an access token with
<var>repo</var> permissions. This will not be written to <code>~/.config/hub</code>.</p>
<h3 id="HTTPS-instead-of-git-protocol">HTTPS instead of git protocol</h3>
<p>If you prefer the HTTPS protocol for GitHub repositories, you can set
......@@ -479,7 +482,7 @@ $ git help hub
<ol class='man-decor man-foot man foot'>
<li class='tl'>GITHUB</li>
<li class='tc'>January 2015</li>
<li class='tc'>November 2016</li>
<li class='tr'>hub(1)</li>
</ol>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册