Shell/Bash: git remember credentials Example

By

Shell/Bash Example: This is the "git remember credentials" Example. compiled from many sources on the internet by SimpleTutorials.org

git store credentials

// local
git config credential.helper store
// global
git config --global credential.helper store

git remember credentials

git config --global credential.helper store

git credentials

# this will store your credentials "forever"
git config --global credential.helper store

git ubuntu store credential

$ git config credential.helper store
$ git push http://example.com/repo.git
Username: 
Password: 

[several days later]
$ git push http://example.com/repo.git
[your credentials are used automatically]

add credentials git linux

# This cache timeout is in seconds
$ git config --global credential.helper 'cache --timeout=3600' 



* Summary: This "git remember credentials" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others