I’m trying to clone one of my private repositories on a new machine (linux subsystem on my windows machine). My git client is 2.25.1. My PAT works on my mac machine.
On my linux subsystem I run:
PROMPT> git clone https://github.com/bkushigian/dotfiles Cloning into 'dotfiles'... Username for 'https://github.com': bkushigian Password for 'https://firstname.lastname@example.org': remote: Invalid username or password. fatal: Authentication failed for 'https://github.com/bkushigian/dotfiles/'
Now I can’t see what I’m pasting into the password field because it’s hidden, but I’ve tried pasting to terminal and it works. I’ve also tried a few other solutions, like using arguments
git -c http.extraheader="AUTHORIZATION: Basic $(echo "bkushigian:ghp_MY-PERSONAL-ACCESS-TOKEN"|base64)" clone https://github.com/bkushigian/dotfiles
git clone https://bkushigian:ghp_MY-PERSONAL-ACCESS-TOKEN@github.com/bkushigian/dotfiles.git
but I keep getting denied access.
Shouldn’t this ‘just work’? Are there special hoops I have to jump through?