Clarify when “hub.protocol” is applied

This commit is contained in:
Jingwen Owen Ou 2014-10-27 20:27:34 -07:00
Родитель 95adc60479
Коммит d26b4e9178
4 изменённых файлов: 10 добавлений и 7 удалений

Просмотреть файл

@ -298,6 +298,7 @@ the API and exchange it for an OAuth token, which it saves in "~/.config/hub".
If you prefer using the HTTPS protocol for GitHub repositories instead of the git
protocol for read and ssh for write, you can set "hub.protocol" to "https".
"hub.protocol" only applies when the "OWNER/REPO" shorthand is used instead of a full git URL.
~~~ sh
# default behavior

Просмотреть файл

@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "HUB" "1" "February 2014" "GITHUB" "Hub Manual"
.TH "HUB" "1" "October 2014" "GITHUB" "Hub Manual"
.
.SH "NAME"
\fBhub\fR \- git + hub = github
@ -177,7 +177,7 @@ Hub will prompt for GitHub username & password the first time it needs to access
To avoid being prompted, use \fIGITHUB_USER\fR and \fIGITHUB_PASSWORD\fR environment variables\.
.
.P
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\.
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\.
.
.IP "" 4
.
@ -327,7 +327,7 @@ $ git pull\-request \-m "Implemented feature X" \-b defunkt:master \-h mislav:fe
.nf
$ git checkout https://github\.com/defunkt/hub/pull/73
> git remote add \-f \-t feature git://github:com/mislav/hub\.git
> git remote add \-f \-t feature mislav git://github\.com/mislav/hub\.git
> git checkout \-\-track \-B mislav\-feature mislav/feature
$ git checkout https://github\.com/defunkt/hub/pull/73 custom\-branch\-name

Просмотреть файл

@ -220,7 +220,8 @@ variables.</p>
<p>If you prefer the HTTPS protocol for GitHub repositories, you can set
"hub.protocol" to "https". This will affect <code>clone</code>, <code>fork</code>, <code>remote add</code>
and other operations that expand references to GitHub repositories as full
URLs that otherwise use git and ssh protocols.</p>
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.</p>
<pre><code>$ git config --global hub.protocol https
</code></pre>
@ -330,7 +331,7 @@ $ git pull-request -m "Implemented feature X" -b defunkt:master -h mislav:featur
<h3 id="git-checkout">git checkout</h3>
<pre><code>$ git checkout https://github.com/defunkt/hub/pull/73
&gt; git remote add -f -t feature git://github:com/mislav/hub.git
&gt; git remote add -f -t feature mislav git://github.com/mislav/hub.git
&gt; git checkout --track -B mislav-feature mislav/feature
$ git checkout https://github.com/defunkt/hub/pull/73 custom-branch-name
@ -459,7 +460,7 @@ $ git help hub
<ol class='man-decor man-foot man foot'>
<li class='tl'>GITHUB</li>
<li class='tc'>February 2014</li>
<li class='tc'>October 2014</li>
<li class='tr'>hub(1)</li>
</ol>

Просмотреть файл

@ -179,7 +179,8 @@ variables.
If you prefer the HTTPS protocol for GitHub repositories, you can set
"hub.protocol" to "https". This will affect `clone`, `fork`, `remote add`
and other operations that expand references to GitHub repositories as full
URLs that otherwise use git and ssh protocols.
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.
$ git config --global hub.protocol https