Out-of-the-box Git can store passwords and personal access tokens through a cache
daemon in the memory or in a plain-text file in your home directory.
Note: Use one of the methods on this page.
In-Memory (RAM) Cache
git config --global credential.helper 'cache --timeout 43200'
Note:
timeout
sets minutes until cache expiration.43200
for 30 days.git pull
- Enter credentials and they will be stored.
Plain-Text
git config --global credential.helper 'store --file ~/.gitcredentials'
Note: might want to store to a non-standard file, such as.gc
as a slight security improvement. [src]git pull
- Enter credentials and they will be stored.
References
- Git – Credential Storage
- credentials – How can I save username and password in Git? – Stack Overflow
Did this solve your issue?
THIS WORKED FOR ME. HELP OTHERS BY VOTING HOW IT WORKED FOR YOU.
RIGHT NOW THIS HAS HELPED 0% WEBSITE VISITORS.
TOTAL VOTES: 0
RIGHT NOW THIS HAS HELPED 0% WEBSITE VISITORS.
TOTAL VOTES: 0