Skip to content

Instantly share code, notes, and snippets.

@anaisbetts
Forked from rtomayko/gist:2601550
Created May 6, 2012 00:02
Show Gist options
  • Save anaisbetts/2606426 to your computer and use it in GitHub Desktop.
Save anaisbetts/2606426 to your computer and use it in GitHub Desktop.
Open beautiful git-scm.com manual pages w/ git help
# The new git-scm.com site includes man pages designed for pleasant viewing in a web browser:
#
# http://git-scm.com/docs
#
# The commands below can be used to configure git to open these pages when
# using `git help <command>' from the command line. Just enter the config
# commands in your shell to modify your ~/.gitconfig file.
# Create a new browser command and configure help -w to use it.
git config --global browser.gitscm.cmd "/bin/sh -c 'open http://git-scm.com/docs/\$(basename \$1 .html)' --"
git config --global help.browser gitscm
git config --global help.format html
# Test it out
git help log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment