Ubuntu Git避免每次提交都输入密码
2022-10-23 本文已影响0人
leach_chen
1:cd ~
2:vim .git-credentials
该文件可能不存在,输入内容https://{username}:{password}@github.com 保存即可username、password、github.com替换成你自己的内容
3:git config --global credential.helper store
执行完之后会在/home/用户名/.gitconfig 会新增一项[credential] helper = store
4:下次经过一次输入账号密码提交后,之后就不用再输入