1、
error: The requested URL returned error: 403 Forbidden while accessing
https://github.com/xxx/testgit.git/info/refs
1
2
3
4
5
6
|
vim
/root/testgit/
.git
/confi
[remote
"origin"
]
#url = https://github.com/xxx/testgit.git
url = https:
//xxx
@github.com
/xxx/testgit
.git
fetch = +refs
/heads/
*:refs
/remotes/origin/
*
将原来URL前面加上姓名
|
2、
fatal: HTTP request failed
(gnome-ssh-askpass:2078): Gtk-WARNING **: cannot open display:
运行此命令:
1
|
unsetSSH_ASKPASS
|
1
2
3
|
再运行:
git push -u origin master
输入git帐号密码
|
本文转自 wangpengtai 51CTO博客,原文链接:http://blog.51cto.com/wangpengtai/1923653,如需转载请自行联系原作者