Created
January 4, 2024 18:36
-
-
Save dtxe/46ac24324e7463d9989187bbe668d3c4 to your computer and use it in GitHub Desktop.
Install and configure GCM using defaults for DSI course
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# download gcm | |
wget https://github.com/git-ecosystem/git-credential-manager/releases/download/v2.4.1/gcm-linux_amd64.2.4.1.deb | |
sudo apt install ./gcm-linux_amd64.2.4.1.deb | |
# configure | |
git-credential-manager configure | |
git config --global credential.credentialStore cache | |
git config --global credential.cacheOptions "--timeout 14400" | |
# cleanup | |
rm gcm-linux_amd64.2.4.1.deb | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment