I'm using GitCredentialManager as per this answer but I can't find a way on how to use multiple Personal Access Tokens (PAT).
I have
- a
Windows terminal
gist at https://gist.github.com/lkeersmaekers/4884d047b3b90ccd697a4d7ec21be49d - a
dotvim
repo at https://github.com/lkeersmaekers/dotvim
I created
- a PAT for the
Windows terminal
gist (Create gists scope) - a PAT for the
dotvim
repo (Access public repositories scope)
When pushing the Windows terminal
the gist a first time, git asks for a username/password(=PAT) as expected, the push succeeds and I can see the credential in Windows Credential Manager.
When pushing the dotvim
repo thereafter however uses that stored credential (PAT) from Windows terminal
and the dotvim
push fails.
I'm unsure at what is the best practice here.
- Instead of the two PAT's, I could create one PAT with enough access rights but that way, I'll probably end up with one PAT with all checkboxes checked which seems utterly wrong.
- I have no idea how to have two credentials in Windows Credential manager that would allow
git push
somehow to use the correct one.