Making the GitHub CLI’s credential helper work with multiple GitHub accounts

Back in 2023 I wrote about automatically configuring Git based on the remote repository URL, using Git’s hasconfig:remote conditional includes to switch identity, email and signing key depending on which client’s repository I was working in. That configuration solved the identity half of working across multiple GitHub accounts, but it didn’t deal with the authentication side of things.