komrad github credential
Answer git's credential helper protocol with an installation token
komrad github credentialAnswer git when it asks for a password.
Git runs this and describes what it wants to reach. This answers only for https to github.com. Anything else gets no answer, so git falls back to whatever else the account has configured.
Nothing is stored. The token is made when git asks and stops working within the hour.
Set it up with:
git config --global credential.https://github.com.helper '!komrad github credential'