1、github push错误
git push
error: The requested URL returned error: 403 Forbidden while accessing https://github.com/lyz/test.git/info/refs
git version 1.7.1
OS:CENTOS
解决方案:
vim .git/config
修改
[remote "origin"]
url = https://github.com/lyz/test.git
为:
[remote "origin"]
url = https://lyz@github.com/lyz/test.git
2、Git clone error “(gnome-ssh-askpass:11720): Gtk-WARNING **: cannot open display:”
在命令行中输入如下命令后重新操作
unset SSH_ASKPASS