Git credentials: avoid inserting username and password every time

1min read

November 10, 2019

Are you annoyed because git keeps asking for credentials every time after a git push or pull?

There are a couple of solutions:

  1. SSH keys (the best way of doing it)
  2. git credentials

Usually I always used the first method, but recently I found this answer on Stack Overflow. Basically you can run:

git config --global credential.helper store

And after the next authentication, git will save the credentials and you see another details prompt again.

⚠ WARNING: do this only if you are okay about storing your credentials in plain text.


11 Febrary 2021
  • fix some typo and add warning
comments powered by Disqus