• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

Storing Git Credentials

February 9, 2019

There are two ways to store git credentials. One is temporary and the other permanent. You can store your git credentials unencrypted on disk forever or in cache memory temporarily.

Temporary. Store for 15 minutes.

git config credential.helper 'cache --timeout=900'

git config credential.helper 'cache --timeout=900'

Permanent.

git config credential.helper store
git push http://example.com/repo.git
Username: <type your username>
Password: <type your password>

git config credential.helper store git push http://example.com/repo.git Username: <type your username> Password: <type your password>

Next time you use git, you will not be prompted for a password.

Filed Under: Git, Linux Tagged With: cache, credentials, disk, git, permanent, store, temporary

Search This Website

Subscribe Via Email

  • Home
  • About
  • Archives

Copyright © 2023