Installing git HTML Help

Source: Internet
Author: User
Document directory
  • Installing
  • Updating the docs
  • Nothing to see here folks...
  • Installing
  • Updating the docs

His 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). installing these help files is a fairly simple process.

Installing

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
git help --web commitFor where your git is set to look for the HTML files.

git help --web commit# Attempt to open the html help for the commit command# fatal: '/usr/local/git/share/doc/git-doc': not a documentation directory.sudo mkdir -p /usr/local/git/share/doc# Create the path for the docs to be installed tocd /usr/local/git/share/doc$ sudo git clone git://git.kernel.org/pub/scm/git/git-htmldocs.git git-doc# Clone the git repo and check out the html documents branch

To verify that the Web docs now work, rungit 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:

$ cd /usr/local/git/share/doc/git-doc$ sudo git pull
Nothing to see here folks...

Msysgit installand sets the HTML Help files as the default automatically. You don't need to do anything!

Installing

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
git help --web commitFor where your git is set to look for the HTML files.

git help --web commit# Attempt to open the html help for the commit command# fatal: '/usr/share/doc/git-doc': not a documentation directory.sudo mkdir -p /usr/share/doc# Create the path for the docs to be installed tocd /usr/share/doc$ sudo git clone git://git.kernel.org/pub/scm/git/git-htmldocs.git git-doc# Clone the git repo and check out the html documents branch

To verify that the Web docs now work, rungit 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:

$ cd /usr/share/doc/git-doc$ sudo git pull

Reprinted: https://help.github.com/articles/installing-git-html-help#platform-linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.