2
I sometimes mistype a password when being asked for it, e.g. by Git when pushing to remote repository. The password is not displayed (even masked as asterisks) in the console.
Is there a way either to correct the password, or to abort the operation? Backspace for editing and CtrlC for aborting do not seem to work.
I want to save some time instead of waiting for the remote authentication to fail, or providing a bad password, then Enter, CtrlC.
Edit 2:
Unfortunately neither CtrlU nor @ do not work for me. Any other guesses?
I used MINGW32 bash under Windows XP, but as pointed by @silencedhaven, my terminal shouldn't matter, but rather the one I'm connecting to. So I'm trying to push to GitHub by HTTPS.
Did is after you press enter? And do you realize that the password is wrong after pressing enter, or because the host is waiting? – Bernhard – 2012-11-22T15:30:04.787
I'm aware of the typo just after pressing wrong key on the keyboard. At that time, I want to fix it, or abort, without pressing
ENTER
. I know I can typeENTER
andCTRL
-C
quickly afterwards. – jakub.g – 2012-11-22T15:33:07.1671
Is this what you're looking for?
– Kevin – 2012-11-22T18:04:16.7001May depend on your terminal type, but
CTRL-U
often does it for me, if I understand your situation. – Lars Rohrbach – 2012-11-22T18:04:39.397Yep it's my case unfortunately. Tried
CTRL
withU
,W
and several other buttons and none of it works for me. – jakub.g – 2012-11-23T13:12:54.813