What's the difference between using a PAT vs GCM? #423
-
I couldn't understand the difference between the usage of a personal access token which I create manually via the web UI vs using GCM. I'm on macOS. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
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 Creating a PAT in the web UI and using this as the |
Beta Was this translation helpful? Give feedback.
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
, andworkflow
scopes.Creating a PAT in the web UI and using this as the
password
(and using theosxkeychain
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.