Skip to content

Instantly share code, notes, and snippets.

@toshikaz55
Last active December 15, 2015 03:29
Show Gist options
  • Save toshikaz55/5194926 to your computer and use it in GitHub Desktop.
Save toshikaz55/5194926 to your computer and use it in GitHub Desktop.
githubのパスワードをmacのKeychainから取得する方法
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