1.设置邮箱
git config --global user.email "your email"
2.设置用户名
git config --global [user.name](http://user.name) "your username"
前面两个步骤在安装git的时候已经设置了就不需要重复设置了。
3.设置永久密码保存
git config --global credential.helper store
之后执行git pull并输入用户名和密码后即可保存密码,将于用于目录下生成.git-credentials文件,内存有账号密码。
评论 (0)