简体   繁体   中英

Git Push: I can't add a file to my Repo since Git doesn't allow me to enter my Github password

Intro

I'm pretty new to Git and Github, and I am just trying to add (new) files to a repo I created on Github. I have Windows 7. I have found some supposed solutions for Linus/OX on Stack Overflow, but it does not work for Windows 7.

I have found a similar question on Stack Overflow. Users answered that it is common for passwords to remain invisible, but that it should work if you enter in the password anyways.

I do not care if I have to enter my username/password in every time I want to push to GitHub.

Problem

I have committed various files and need to push them to GitHub from Git. In Git Bash/the terminal, all steps from the beginning tutorials/Google answers to add files from your computer onto GitHub are successful until the very last step ( git push origin master ).

At this point, the terminals prompts me to enter my username (no problem, successful) and my password. Nothing shows up when I type my password. If I type my password in and press enter afterwards anyways, nothing happens/it does not work. I have tried this multiple times. The password works on GitHub/the password is correct.

Further information

GitHub shows that I have a ReadMe file and a license in my repo. I will need to add an html, css, and jpg file to GitHub.

When you type the password the cursor won't move on the command-line. Then type the password, then press enter. I got it to work!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM