August 13, 2021 github removed the username/password authorization for command-line commands. So I went and got a PAC (Personal Access) token.
So when I clone an existing repo, cd to that subdir/repo, modify/create a file and then commit the change. That all works just fine.
HOWEVER
when I do: git push -u origin
It asks for my username and password. After spending hours on google, I read that I'm supposed to use my PAC as the password. But when I do that I get: remote: Invalid username or password. Fatal: Authentication failed for <the repo I'm trying to update on github?
This worked fine just a few weeks ago. What am I doing wrong? Getting desperate to make this work.
TIA Bill W
Create new personal token in your github account at
Settings -> Developer Settings -> Personal access token -> Generate Token
Change your remote url with:
git remote set-url origin https://[token]@github.com/[username]/[repository]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With