Created
May 5, 2012 10:58
-
-
Save rtomayko/2601550 to your computer and use it in GitHub Desktop.
Open beautiful git-scm.com manual pages w/ git help -w
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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