查看所有配置
git config --list
设置用户名
git config --global user.name tianshan
设置密码
git config --global user.password tianshan
设置邮箱
git config --global user.email "eamil@qq.com"
git命令每次都要输入账号密码解决方法
- 打开项目cmd , 打开方式 – 进入项目的文件目录,在目录中输入 cmd
- 在命令行输入命令 git config –global credential.helper store
- 在命令行输入命令 git pull (意思是创建一个logo文件保存你的账号密码,这样以后就不需要再重复输入账号密码了 )
附:
git文档配置所在目录:C:\Users\Administrator\.gitconfig

版权声明:除特别注明外,本站所有文章均为田珊珊个人博客原创
转载请注明:出处来自田珊珊个人博客 » git配置用户名邮箱密码