OS X: git config --global credential.helper osxkeychain Windows:
There’s a tool named git-credential-winstore (available at http://gitcredentialstore.codeplex.com) to store these credentials in the Windows Credential Store.
Linux/Unix:
There’s a tool named git-credentialgnome-keyring (bundled with Git 1.8.0 and above) to store these credentials in the GNOME Keyring.
OS X:
git config --global credential.helper osxkeychain
Windows:
Linux/Unix:
目测密文拿走了还是不安全。因为对称加密里面没有随机数。如果真想安全可以考虑使用使用ssh的方式进行认证,然后用RSA非对称加密。然后在非对称密码上再设置一个密码。Tip:绕过明文加密直接使用密文认证已经是很老的方法了。2333