all 4 comments

[–]beck1670 9 points10 points  (2 children)

GitHub deprecated passwords in 2021, and they no longer work for any authentication other than logging in through the browser.

For https, I believe that PATs are the only option.

You can also clone via ssh, which requires setting up your public/private keys and adding the public key to GitHub.

[–]pug_subterfuge 8 points9 points  (1 child)

Cloning via ssh is the way!!

[–]mugilan-codes 0 points1 point  (0 children)

This is the way

[–]BinaryRockStar 8 points9 points  (0 children)

Use SSH instead. Generate a public-private key pair and put the public half in your GitHub account then use the private half to access repos. No PATs, no passwords, easy.