CentOS 永久保存Git密码

2,554 阅读1分钟

第一步:设置邮箱和密码

git config --global user.email "your email"
git config --global user.name "your username"

第二步:设置永久保存

git config --global credential.helper store

第三步:手动输入一次用户名和密码,GIT会自动保存密码,下次无须再次输入

git pull