1、
error: The requested URL returned error: 403 Forbidden while accessing
https://github.com/xxx/testgit.git/info/refs
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:
运行此命令:
unsetSSH_ASKPASS
再运行: git push -u origin master 输入git帐号密码