从中更改克隆命令地址
$sudo git clone git://git.kernel.org/pub/scm/git/git.git git-doc --branch html
至
$sudo git clone git://git.kernel.org/pub/scm/git/git-htmldocs.git git-doc
希望很快就会在Github教程中进行更改.
更新:
如果您是认为使用Xcode 4提供Apple Git发行版的人之一:
# create directory to keep Git documentation html-files
$sudo mkdir -p /usr/local/git/share/doc # or whatever directory you choose
# change to that directory
$cd /usr/local/git/share/doc
# clone repo with documentation
$sudo git clone git://git.kernel.org/pub/scm/git/git-htmldocs.git git-doc
# point your Git explicitly to a new documentation directory
$git config --global help.htmlpath /usr/local/git/share/doc/git-doc
# tell Git to use html-formatted help by default
$git config --global help.format html
这将在.gitconfig中创建一个条目,如:
[help]
format = html
htmlpath = /usr/local/git/share/doc/git-doc