diff options
| author | tekkub <tekkub@gmail.com> | 2010-03-24 23:53:55 -0600 |
|---|---|---|
| committer | tekkub <tekkub@gmail.com> | 2010-03-24 23:55:44 -0600 |
| commit | ae79238ec680aa64bb8aef0b05f8cb2a2619d11f (patch) | |
| tree | 8435bc2b6bca525a4413a2d8a09b6a8b0c570cd3 | |
| parent | e5083a54ac9ea4261ace09764148d4bf782b5295 (diff) | |
Simpler route for HTML docs, and updating!
| -rw-r--r-- | _posts/2009-07-04-git-html-help.markdown | 40 | ||||
| -rw-r--r-- | _posts/2009-07-04-git-html-help.textile | 50 |
2 files changed, 40 insertions, 50 deletions
diff --git a/_posts/2009-07-04-git-html-help.markdown b/_posts/2009-07-04-git-html-help.markdown new file mode 100644 index 0000000..dae6fd4 --- /dev/null +++ b/_posts/2009-07-04-git-html-help.markdown @@ -0,0 +1,40 @@ +--- +layout: default +title: Installing Git HTML help +description: How to install the local git HTML help files +categories: setup +--- + +This guide will help you install the local git HTML help files and set git to use them by default instead of the man pages. + +Most git installations will install man files for help, but not the HTML help files (the same files seen on git's [online documentation](http://www.kernel.org/pub/software/scm/git-core/docs/)). Installing these help files is a fairly simple process. + +Windows +------- + +[Msysgit](http://code.google.com/p/msysgit/) installs and sets the HTML help files as the default automatically. You don't need to do anything! + +OSX +--- + +To install web docs we simply need to clone the main git repo to the correct path and check out the "html" branch. Your documentation path may be different, pay attention to the output of `git help --web commit` for where your git is set to look for the HTML files. + +<pre class="terminal"> +$ git help --web commit +fatal: '/usr/local/git/share/doc/git-doc': not a documentation directory. + +$ sudo mkdir -p /usr/local/git/share/doc +$ cd /usr/local/git/share/doc +$ sudo git clone git://git.kernel.org/pub/scm/git/git.git git-doc --branch html +</pre> + +To verify that the web docs now work, run `git help --web commit`. If your browser launches then you're good to go. You can now set git to default to the web docs by running `git config --global help.format web` + +### Updating the docs + +Updating is a simple matter of pulling: + +<pre class="terminal"> +$ cd /usr/local/git/share/doc +$ sudo git pull +</pre> diff --git a/_posts/2009-07-04-git-html-help.textile b/_posts/2009-07-04-git-html-help.textile deleted file mode 100644 index 6426601..0000000 --- a/_posts/2009-07-04-git-html-help.textile +++ /dev/null @@ -1,50 +0,0 @@ ---- -layout: default -title: Installing Git HTML help -description: How to install the local git HTML help files -categories: setup ---- - -This guide will help you install the local git HTML help files and set git to use them by default instead of the man pages. - -Most git installations will install man files for help, but not the HTML help files (the same files seen on git's "online documentation":http://www.kernel.org/pub/software/scm/git-core/docs/). Installing these help files is a fairly simple process. - -h2. Windows - -"Msysgit":http://code.google.com/p/msysgit/ installs and sets the HTML help files as the default automatically. You don't need to do anything! - -h2. OSX - -The following commands were run on an installation of the "git-osx-installer":http://code.google.com/p/git-osx-installer/. Your documentation path may be different, pay attention to the output of @git help --web commit@ for where your git is set to look for the HTML files. - -<pre class="terminal">$ git help --web commit -fatal: '/usr/local/git/share/doc/git-doc': not a documentation directory. - -$ git clone git://git.kernel.org/pub/scm/git/git.git -Initialized empty Git repository in /Users/tekkub/git/.git/ -remote: Counting objects: 101588, done. -remote: Compressing objects: 100% (27214/27214), done. -remote: Total 101588 (delta 73797), reused 100304 (delta 72681) -Receiving objects: 100% (101588/101588), 24.50 MiB | 377 KiB/s, done. -Resolving deltas: 100% (73797/73797), done. -Checking out files: 100% (1652/1652), done. - -$ cd git -$ make quick-install-html -GIT_VERSION = 1.6.3.3.385.g60647 -make -C Documentation quick-install-html - GEN doc.dep - SUBDIR ../ -make[2]: `GIT-VERSION-FILE' is up to date. - SUBDIR ../ -make[2]: `GIT-VERSION-FILE' is up to date. -'/bin/sh' ./install-doc-quick.sh origin/html /Users/tekkub/share/doc/git-doc - -$ cd /usr/local/git/share/ -$ sudo mkdir doc -$ cd doc/ -$ sudo mv ~/share/doc/git-doc . -$ git help --web commit - (web browser launches) - -$ git config --global help.format web</pre> |
