http://backlogtool.com/git-guide/cn/reference/trouble-shooting.html
HTTPS requires passwords every time you execute push/pull
if you are windows,Just for the first time
but in Mac, you can use the authentication assistant connected with the key chain. Users using Homebrew automatically install authentication assistants when installing Git. In addition, you need to install manually.
If you want to verify that you have an installation certification assistant, you can use the following command to confirm.
git credential-osxkeychain
If the authentication assistant is not installed, the following contents are displayed.
git: 'credential-osxkeychain' is not a git command. See 'git --help'.
At this point, you can download the authentication assistant to the right path.
curl -s -O http://github-media-downloads.s3.amazonaws.com/osx/git-credential-osxkeychain
chmod u+x git-credential-osxkeychain
mv git-credential-osxkeychain /usr/local/bin
After installation, set the open authentication assistant.
git config --global credential.helper osxkeychain