Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Development Tools Introduction to Git GitHub and Other Remote Repositories Exploring the Repo on GitHub

Elgene Ee
Elgene Ee
3,554 Points

No password shown...Anyone can help me?

So, I enter --> git push -u origin master When the workspace prompted me to enter username and password, username is fine to me, but when the password shows up, I can't seem to type anything in the input....Does anyone have the same problem as I do?

2 Answers

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there! Yes, everyone experiences this. In the video, you'll see him type in the username but you'll never see anything print when he types the password. This is for security reasons. We never want anyone to see our password printed to the screen in case someone is standing behind us etc. Beyond that, not showing anything like asterisks means that even if someone sees our passwords obfuscated, they still have no idea how long our password is, which is an added security mechanism.

To be clear, this is not exclusive to git. There are other powerful commands that can be entered in the terminal which also require passwords (such as sudo). Those will also not be shown as you type the password.

I found this short article about it.

Hope it helps! :sparkles:

Elgene Ee
Elgene Ee
3,554 Points

Thank you Jennifer Nordell, The issue is when I no matter what I typed, nothing shows up...Even I entered the correct password(which shows nothing), they still prompted me an error. Could you help me with that?

Jennifer Nordell
seal-mask
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

What do you mean by "prompted you an error"?. What error are you receiving? And no, nothing will be visible as you are typing your password. That is the way terminal works. Nothing will show up.

Elgene Ee
Elgene Ee
3,554 Points

Oh, I can seem to finally push my repo to GitHub, it was because I did not type my password correctly I suppose. Thank you so much Jennifer!