`git clone` from command line leads to unexpected GitX SSH Remove Password dialog

57 Views Asked by At

In a terminal, when I try to

$ git clone <rep>

this happens

enter image description here

It's disturbing when you don't expect it.

Why does this happen, and how do I get rid of it?

1

There are 1 best solutions below

0
On

git can use whatever is pointed to by the envariable SSH_ASKPASS (cf. here) as a helper when it needs a password, and something in GitX (specifically, GitX-dev) causes it to write this variable to use a tool internal to the GitX.app bundle.

To get rid of it in bash

unset SSH_ASKPASS