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

 

原文地址:https://www.cnblogs.com/wt645631686/p/6995117.html