git credentials mac code example Example: git config --global credential.helper osxkeychain git config --global credential.helper osxkeychain