Skip to content
Discussion options

You must be logged in to vote

GCM does not really have a “decrypt once per shell login” mode like an SSH private key workflow.

The closest built-in options are:

# Do not persist credentials through GCM at all
 git config --global credential.credentialStore none

or, on macOS/Linux, use Git's in-memory credential cache with a timeout:

 git config --global credential.credentialStore cache
 git config --global credential.cacheOptions "--timeout 3600"

That stores the credential only in Git's cache process for the timeout period. The default timeout documented by GCM is 900 seconds; the example above makes it 1 hour.

For a shared server, I would avoid any durable store unless each person has a separate OS user account. Do n…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by SpiderUnderUrBed
Comment options

You must be logged in to vote
1 reply
@krotname
Comment options

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
3 participants