Linux或者Mac下方法:
創建文件,進入文件,輸入內容:
cd ~
touch .git-credentials
vim .git-credentials
https://{username}:{password}@github.com
在終端下輸入:
git config --global credential.helper store
打開~/.gitconfig
文件,會發現多了一項:
[credential]
helper = store