Can't type password in Git Bash

本小妞迷上赌 提交于 2019-12-03 08:52:11

问题


I have a strange problem I couldn't find anything about on the web.

I'm learning to use BitBucket and I'm following their walkthrough. I'm using Git Bash as the command prompt as they say here.

Whenever I need to enter a password, e.g when cloning a repo, it simply refuses to get any input! I type on the keyboard, but nothing is shown on the screen. The only key it does accept is Enter, and then it says authorization fails because there's no password. I can't type it.

The strange thing is that I can type all other commands, just not this one. Any ideas?


回答1:


You are typing the password, it just does not give you a visible reaction when entering characters (i.e. no * symbols). So just type your password correctly, press enter and it should work.




回答2:


I use bitbucket a great deal. I notice that sometimes when I am cloning a very large repository I enter my password (which doesn't show) and then I press enter and then I have to wait for quite a while before anything will clone. A slow clone does tend to look like a hang. Try typing in your password, press enter, grab some coffee and come back. Works for me.




回答3:


There are a few things that can be your problem but first understand that the terminal does let you type your password it just doesn't let you see it for security reasons. Another thing that can fix it is if you are using any numbers in your password try using the keys at the top of the keyboard instead of the keypad. But keep in mind you will not be able to see any of what is going on.



来源:https://stackoverflow.com/questions/13399315/cant-type-password-in-git-bash

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!