github每次push时自动输入用户名密码

.git目录下,有一个config文件,编辑:

[remote "origin"]
	url = https://github.com/DoubangoTelecom/doubango
	fetch = +refs/heads/*:refs/remotes/origin/*

改为

[remote "origin"]
	url = https://用户名:密码@github.com/DoubangoTelecom/doubango
	fetch = +refs/heads/*:refs/remotes/origin/*

由上述可见,密码尽量不要使用特殊含义的字符。

发布了2466 篇原创文章 · 获赞 301 · 访问量 177万+

猜你喜欢

转载自blog.csdn.net/quantum7/article/details/104368933