git credential-osxkeychain# Test for the cred helper
# git: 'credential-osxkeychain' is not a git command. See 'git --help'.
curl -s -O http://github-media-downloads.s3.amazonaws.com/osx/git-credential-osxkeychain# Download the helper
chmod u+x git-credential-osxkeychain# Fix the permissions on the file so it can be run
sudo mv git-credential-osxkeychain /usr/local/bin# Move the file so git can access it
# Password: [enter your password]
git config --global credential.helper osxkeychain# Set git to use the osxkeychain credential helper
[url]https://help.github.com/articles/set-up-git#password-caching[/url]