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

Merge pull request #671 from lloydde/doc-readme-protocol

[doc] Readme: use text from hub man page for hub.protocol.
......@@ -296,9 +296,13 @@ the API and exchange it for an OAuth token, which it saves in "~/.config/hub".
### HTTPS instead of git protocol
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.
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
that otherwise use git and ssh protocols.
"hub.protocol" only applies when the "OWNER/REPO" shorthand is used instead of
a full git URL.
~~~ sh
# default behavior
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册