github 使用过程中的问题处理

1 git push 403 错误
[root@xxx ]# git remote add origin https://github.com/qfong/xxx.git
[root@xxx ]# git push origin master
error: The requested URL returned error: 403 Forbidden while accessing https://github.com/qfong/xxx.patch.git/info/refs

fatal: HTTP request failed
改为: https://github.com/qfong/xxx.git => https://qfong@github.com/qfong/xxx.git

2 cannot open display: 错误
[root@xxx ]# git push -u origin master

(gnome-ssh-askpass:3374): Gtk-WARNING **: cannot open display:
解决方法:SSH_ASKPASS环境变量unset掉就可以了
[root@xxx ]# unset SSH_ASKPASS

发表评论

您的电子邮箱地址不会被公开。