Hacker News new | past | comments | ask | show | jobs | submit login

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-gith...

[1] GitLab: https://docs.gitlab.com/ee/user/ssh.html

[2]: BitBucket: https://support.atlassian.com/bitbucket-cloud/docs/set-up-pe...

[3] https://techexpertise.medium.com/storing-git-credentials-wit...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: