Change clone command address from
$ sudo git clone git://git.kernel.org/pub/scm/git/git.git git-doc --branch html
to
$ sudo git clone git://git.kernel.org/pub/scm/git/git-htmldocs.git git-doc
Hope this will be changed soon in the Github tutorial.
UPDATE:
If you are one of those who consider it sufficient to distribute the Apple Git that ships with Xcode 4:
# 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
This will create an entry in your .gitconfig, for example:
[help] format = html htmlpath = /usr/local/git/share/doc/git-doc
erop
source share