打開終端按順序執行下面的指令:
1.cd ~
2.touch .git-credentials
3.vim .git-credentials 然后在打開的文件里面輸入
https://{username}:{password}@github.com
其中{username},{passworld}更換成自己的賬號密碼,保存並退出。
4.git config --global credential.helper store
5.打開~/.gitconfig文件,會發現多了一項:
[credential]
helper = store
完成設置
