Linux下
在~/下, touch建立檔案 .Git-credentials,
touch .git-credentials
vim .git-credentials
編輯此檔案,輸入内容格式:
https://{username}:{password}@github.com
例如 https://zhang3:[email protected]
2. 在終端下執行 git config --global credential.helper store
3. 可以看到~/.gitconfig檔案,會多了一項:
[credential] helper = store