git push报错 The requested URL returned error: 403

来源:互联网 发布:数据签名异常 编辑:程序博客网 时间:2024/05/21 06:13
转载自:http://www.uhdesk.com/?p=12


如红色部分所示,clone时候就添加上用户名,随后会提示你输入密码,就OK了


Git clone https://username@github.com/blah/blahblah.git
如果你想后面的操作也不再输入密码了,你可以在地址中加上密码


git clone https://username:password@github.com/blah/blahblah.git
如果你已经clone了,也可以通过重设地址的方式


git remote set-url origin  https://username:password@github.com/blah/blahblah.git
0 0
原创粉丝点击