在你处于一个本地仓库中,马上要提交代码到远程仓库的时候开始执行下列命令;
git config --global credential.helper store
git config --global user.email "你的邮箱"
git config --global user.name "你的github用户名"
git push
输入你的用户名、密码,这时候已经系统已经将你的用户名密码全局保存,以后就不必再输入了。
在你处于一个本地仓库中,马上要提交代码到远程仓库的时候开始执行下列命令;
git config --global credential.helper store
git config --global user.email "你的邮箱"
git config --global user.name "你的github用户名"
git push
输入你的用户名、密码,这时候已经系统已经将你的用户名密码全局保存,以后就不必再输入了。
本文标题:git一次性设置用户名密码
本文链接:https://www.haomeiwen.com/subject/tokpdrtx.html
网友评论