linux环境git保存账户和密码设置

全局设置

git config --global user.name [username] 
git config --global user.password [userpassword] 

当前项目生效

git config user.name [username] 
git config user.password [userpassword] 

如果想要免密码操作,正常上传或拉去数据后,执行下面语句,即可

git config --global credential.helper store

你可能感兴趣的:(linux,git,运维)