how to set username and password for git in terminal code example Example: add username password git $ git config --global credential.helper cache