git credential manager code example

Example 1: git config credential.helper store

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

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

Example 2: git credentials

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

Example 3: how to store git credentials

git config --global credential.helper store

Example 4: create permanent git credentials windows

$ git config --global credential.helper wincred

Example 5: create permanent git credentials windows

git remote set-url origin [email protected]:username/repo.git

Example 6: create permanent git credentials windows

git config --global credential.helper 'cache --timeout=600'