今天在git push origin master时,竟然出现了错误 (gnome-ssh-askpass:32737): Gtk-WARNING : cannot open display: error: unable to read askpass response from ‘/usr/libexec/openssh/gnome-ssh-askpass’根本原因是执行了该脚本
1 | $ cat /etc/profile.d/gnome-ssh-askpass.sh |
解决方式
1 | $ unset SSH_ASKPASS |
再次执行git
1 | $ git push origin master |
不再提示错误。