github

1831 查看

参考http://pages.github.com/,但是碰到以下2个问题
1.
[root@jack-90 blog]# git push
error: The requested URL returned error: 403 Forbidden while accessing https://github.com/jackzou19/blog.git/info/refs

fatal: HTTP request failed

[root@jack-90 blog]# vim .git/config

...
[remote "origin"]
fetch = +refs/heads/:refs/remotes/origin/
url = https://jackzou19@github.com/jackzou19/blog.git
将 url = https://github.com/jackzou19/blog.git改成上面这样即可。

2.
[root@jack-90 blog]# git push

(gnome-ssh-askpass:7359): Gtk-WARNING **: cannot open display:
[root@jack-90 blog]# unset SSH_ASKPASS