4 ms·
Nice overview! Personally, I'd like to argue against storing credentials in plaintext on disk. The usual suspects all have ways to use SSH keys [0-2]. If you r
by ahmism 2y ago
Nice overview! Personally, I'd like to argue against storing credentials in plaintext on disk. The usual suspects all have ways to use SSH keys [0-2].
If you really prefer to store credentials, you can cache them for a temporary amount of time [3]. The basic command is:
git config --global credential.helper store
[0] GitHub: https://docs.github.com/en/authentication/connecting-to-github-with-ssh https://docs.github.com/en/authentication/connecting-to-gith...
[1] GitLab: https://docs.gitlab.com/ee/user/ssh.html https://docs.gitlab.com/ee/user/ssh.html
[2]: BitBucket: https://support.atlassian.com/bitbucket-cloud/docs/set-up-personal-ssh-keys-on-linux/ https://support.atlassian.com/bitbucket-cloud/docs/set-up-pe...
[3] https://techexpertise.medium.com/storing-git-credentials-with-git-credential-helper-33d22a6b5ce7 https://techexpertise.medium.com/storing-git-credentials-wit...