Browse files

Merge pull request #127 from cliffrowley/patch-1

Update README.markdown
  • Loading branch information...
2 parents 6f30a3d + 4ecd4aa commit 977591dbab945f4fa11227c0d68071dfe16388da @indirect indirect committed Feb 1, 2013
Showing with 10 additions and 2 deletions.
  1. +10 −2 README.markdown
@@ -76,8 +76,16 @@ git config --global github.password "your-github-password"
You can also define github.password to be a command which returns the
actual password on stdout by setting the variable to a command string
prefixed with `!`. For example, the following command fetches the
-password from an item named "github.password" on the Mac OS
+password from the Mac OS Keychain entry for the GitHub website (if you
+allow your browser to save passwords):
+password = !security find-internet-password -u <your github username> -s -w | tr -d '\n'
+If you don't allow your browser to save passwords, you can use the following
+to fetch the password from a Keychain entry named "github.password" (you'll
+also need to create the Keychain entry):
password = !security find-generic-password -gs github.password -w | tr -d '\n'

0 comments on commit 977591d

Please sign in to comment.