Skip to content

Instantly share code, notes, and snippets.

@rtomayko
Created May 5, 2012 10:58
Show Gist options
  • Star 20 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save rtomayko/2601550 to your computer and use it in GitHub Desktop.
Save rtomayko/2601550 to your computer and use it in GitHub Desktop.
Open beautiful git-scm.com manual pages w/ git help -w
# 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 -w <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
# Test it out
git help log -w
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment