Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

github auto authentication with personal access tokens doesn't work

I have followed the explanation here for setting up auto authentication of github on my CLI (on Linux, Ubuntu). In particular, I executed the command given here:

gh auth login

And then I answered Github.com, yes, HTTPS, and my authentication token to the prompts.

This seems to work: It states "Configured git protocol" and "Logged in as ...".

However, when I then write git clone <myrepo>, it asks me again for my username and password.

What am I doing wrong? My understanding was that the gh aut login command is supposed to prevent me from having to type the login data each time.

like image 770
user56834 Avatar asked Aug 25 '26 06:08

user56834


1 Answers

found in the Github CLI Docs:

after you run gh auth login then run this command

gh auth setup-git
like image 197
synthmusic Avatar answered Aug 26 '26 21:08

synthmusic



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!