首页 > 代码库 > Git (gnome-ssh-askpass:3871): Gtk-WARNING **: cannot open display:

Git (gnome-ssh-askpass:3871): Gtk-WARNING **: cannot open display:

在使用Git在客户端使用git push 命令提交文件到github时,出现报错 

(gnome-ssh-askpass:3871): Gtk-WARNING **: cannot open display: 

解决办法:

在命令行执行:

[ -n "$SSH_CONNECTION" ] && unset SSH_ASKPASS

 

Git (gnome-ssh-askpass:3871): Gtk-WARNING **: cannot open display: