Skip to content

How to store git credentials

Use ssh

Then add the public key on you git profile

cat ~/.ssh/id_rsa.pub

Without ssh (using http protocol)

In each projets :

git config credential.helper store
git config --global credential.helper 'store --file ~/.git-credentials'
  • Could be fine for a read only access
  • Credentials are store in: ~/.git-credentials