git clear cached credentials mac code example Example: git config --global credential.helper osxkeychain Click to copygit config --global credential.helper osxkeychain