关注小众语言,记录、分享技术点滴!

0%

一个git的使用错误unable to read askpass

今天在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
2
$ cat /etc/profile.d/gnome-ssh-askpass.sh
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass

解决方式

1
$ unset SSH_ASKPASS

再次执行git

1
$ git push origin master

不再提示错误。