Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

github removed username/password authorization. Now what?

Tags:

git

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

like image 959
Bill Weissborn Avatar asked Aug 23 '26 16:08

Bill Weissborn


1 Answers

  1. Create new personal token in your github account at

    Settings -> Developer Settings -> Personal access token -> Generate Token

  2. Change your remote url with:

    git remote set-url origin https://[token]@github.com/[username]/[repository]

like image 157
Bauroziq Avatar answered Aug 26 '26 13:08

Bauroziq