diff --git a/README.md b/README.md index 0cdb37148c04ab3e30e7cf106514df0121edcc23..3856aba7907cea84a1fcaaa48635b00e68091c80 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/man/hub.1 b/man/hub.1 index 491899a49373168d4c1bacaf49be699ed593e474..64395b2dc8660eede8576ef2a2a711c3906b064d 100644 --- a/man/hub.1 +++ b/man/hub.1 @@ -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 diff --git a/man/hub.1.html b/man/hub.1.html index 39d054da1dd7c5b645fdf10d28e26b809fbe8f2e..c2165c2eb42f6d58baa84a28efd6a59d50b0746d 100644 --- a/man/hub.1.html +++ b/man/hub.1.html @@ -220,7 +220,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
 
@@ -330,7 +331,7 @@ $ git pull-request -m "Implemented feature X" -b defunkt:master -h mislav:featur

git checkout

$ 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
@@ -459,7 +460,7 @@ $ git help hub
 
   
  1. GITHUB
  2. -
  3. February 2014
  4. +
  5. October 2014
  6. hub(1)
diff --git a/man/hub.1.ronn b/man/hub.1.ronn index fba3784ec3c110d3752a74591a78ebd2b9751044..f00c0a0ee207db4e0b23be7848658cdc00dee996 100644 --- a/man/hub.1.ronn +++ b/man/hub.1.ronn @@ -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