git credentials cache code example
Example 1: git clean cache
$ git rm -r --cached .
Example 2: git credentials
# this will store your credentials "forever"
git config --global credential.helper store
$ git rm -r --cached .
# this will store your credentials "forever"
git config --global credential.helper store