'Can't submit GitHub password
When I enter git push I'm prompted to enter my username and password for GitHub. I had no trouble inputting my username and I made a personal access token to substitute for my password, but the command line for my password won't let me enter or paste any text. The only thing I can do is hit enter which tells me that it wasn't able to access my GitHub and returned a 403 error. Any advice on how to fix this would be greatly appreciated!
Solution 1:[1]
The password, even if you type it in, won't show up on the command line. Just type it in - even if it doesn't appear - and hit Enter.
Solution 2:[2]
As you stated command line doesn’t let you enter password only let you hit enter.
By default Linux Command Lines doesn’t visualize passwords for security concerns. That might be the reason you can’t see any inputs.
You can push commits without entering password every time.
git remote set-url https://yourgitHubusername:[email protected]/yourgithubusername/reponame.git
- Note: this will store your git credentials in plain text in gitconfig
To Add all changes git add .
To commit all changes git commit -m "commit message"
To push changes git push origin main
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | wjandrea |
| Solution 2 | Matthew Lock |
