Git配置用户名、邮箱、密码

配置用户名:username

git config --global user.name username

配置邮箱:user@email

git config --global user.email user@email

配置密码

git config --global credential.helper store

该命令会记住密码,执行一次 git pull 或 git push 等需要输入密码的命令,输入一次密码。

查看配置

git config --list

发布了620 篇原创文章 · 获赞 54 · 访问量 45万+

猜你喜欢

转载自blog.csdn.net/wxb880114/article/details/103536860