在~/下, touch建立文件 .git-credentials:
touch .git-credentials
# 用vim编辑此文件, vim .git-credentials #输入内容格式 https://username:password@github.com
2. 在终端下执行 php
git config --global credential.helper store
能够看到~/.gitconfig文件,会多了一项: [credential] helper = store