Git keeps asking for authentication
02:09 13 Oct 2022

I have a private repo on GitHub to store my programming notes and exercises.

I use two computers to access my repo: my personal laptop and my work computer.

As per GitHub's documentation, in order to avoid getting asked for credentials each time you want to push/pull/fetch to/from origin, you should use gh auth login command and do it once and for all.

This worked with my PC, but doesn't seem to with my work computer: as a matter of fact, although I've logged in with my PAT as per GitHub's new security controls, git keeps asking me to authenticate in the aforementioned scenarios.

Note: I've read that one problem might be HTTPS. Well, I don't think so, because I cloned my repo on my laptop following doc's instructions and it worked, so...

Thanks in advance!

git authentication github