docs:mac:builds:git

This is an old revision of the document!


git

  • download source from http://git-scm.com/
  • You can find all the documentation bundled with the Git source code in the Documentation subdirectory (the web version corresponds to the latest Git development version).
  • the default git build procedure will not build the documentation (man, html, etc…)
  • don't bother trying to do it on Mac OS X because the proper files aren't available and it is cumbersome
  • instead, install git as listed above, then use git to clone the latest git repo:
    git clone git://git.kernel.org/pub/scm/git/git.git
  • cd .. to be up one directory level, then clone the git-manpages repo
    git clone git://git.kernel.org/pub/scm/git/git-manpages.git
  • git will install man pages to /usr/local/share/man with this, so make sure your ~/.profile has a proper MANPATH configured:
    MANPATH=/usr/local/man:/usr/local/share/man:/usr/share/man
    export MANPATH
  • cd back into the git repository, then run this to install the man pages:
    sudo make prefix=/usr/local quick-install-man
  • you should now have proper man pages; try it with
    git help status
  • docs/mac/builds/git.1369005086.txt.gz
  • Last modified: 2013/05/19 17:11
  • by billh