git config --global credential.helper osxkeychain

Shell
git config --global credential.helper osxkeychain
Source

Also in Shell: