避免每次更新服务器代码需要输入密码
In Ubuntu 16.04.4 LTS
不想每次 git pull 都输入密码
git config credential.helper store
git pull
并输入密码一次,以后就不用啦
密码将以明文保存在文件系统中,如果你都服务器是够安全的(我的是ssh 持私钥登录的,够安全了)那么也应该不怕别人登录服务器动你的代码了。
参见:
Using this helper will store your passwords unencrypted on disk, protected only by filesystem permissions. If this is not an acceptable security tradeoff, try git-credential-cache, or find a helper that integrates with secure storage provided by your operating system.