每次我推送Git都要求输入用户名 [英] Git asks for username every time I push
本文介绍了每次我推送Git都要求输入用户名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
每当我尝试推入我的回购库时,git都会要求用户名&密码
。
每次重新输入密码都没有问题,但问题在于输入用户名。我使用 https
克隆我的存储库。
那么,如何配置git以便它不会询问对于用户名
,每个 git push
。
我是新的Linux但在Windows中的IIRC git push
只需要输入密码
$ git config credential.helper store
$ git push http ://example.com/repo.git
用户名:<键入您的用户名>
密码:<输入您的密码>
另外我建议您阅读
$ git帮助凭证
Whenever I try to push into my repo git asks for both username & password
.
I have no problem in re-entering my password each time but the problem is in entering username. I use https
to clone my repository.
So, how can I configure git so that it doesn't asks for username
on each git push
.
I am new to linux but IIRC in windows git push
only asks for password.
解决方案
You can store your credentials using the following command
$ git config credential.helper store
$ git push http://example.com/repo.git
Username: <type your username>
Password: <type your password>
Also I suggest you to read
$ git help credentials
这篇关于每次我推送Git都要求输入用户名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文