在~/下, touch創(chuàng)建文件 .git-credentials, 用vim編輯此文件控汉,輸入內(nèi)容格式:
cd ~
touch .git-credentials
vim .git-credentials
### append new line:
### https://{username}:{password}@github.com
git config --global credential.helper store
cat ~/.gitconfig
### shud show:
### [credential]
### helper = store