git clear credentials code example
Example 1: remove git credentials terminal
git config --unset credential.helper
Example 2: git crdencial --cache
# Set the time to remember your credentials for (in seconds). The command below sets it to 10 minutes.
$ git config --global credential.helper 'cache --timeout=600'