Last active
December 15, 2015 03:29
-
-
Save toshikaz55/5194926 to your computer and use it in GitHub Desktop.
githubのパスワードをmacのKeychainから取得する方法
This file contains 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
gistに書いてあるmacのキーチェーン使って、githubのパスワードを平文で持たない方法、意味がよくわからなかったが、 | |
.gitconfigのパスワードを置換しろってことだった | |
defunkt/gist · GitHub | |
https://github.com/defunkt/gist/ | |
% less ~/.gitconfig | |
(snip) | |
[github] | |
user = toshikaz55 | |
password = !security find-internet-password -a toshikaz55 -s github.com -w | tr -d '\n' | |
Ref. | |
bash - How can I set a git config item as a function? - Super User | |
http://superuser.com/questions/429741/how-can-i-set-a-git-config-item-as-a-function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment