Skip to content

What's the difference between using a PAT vs GCM? #423

Answered by mjcheetham
wAuner asked this question in Q&A
Discussion options

You must be logged in to vote

GCM creates OAuth tokens automatically when Git requires a fresh credential, and stores them in the login Keychain (for macOS). It also deals with deleting expired or revoked credentials (Git tells GCM the token is "bad").

Tokens created by GCM have the repo, gist, and workflow scopes.

Creating a PAT in the web UI and using this as the password (and using the osxkeychain credential helper) would achieve much of the same thing, but you'd need to manually generate the PAT with the correct permissions, and ensure it was up-to-date/generate new ones.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@wAuner
Comment options

@John0King
Comment options

@ldennington
Comment options

Answer selected by wAuner

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #421 on August 25, 2021 12:16.