Git免密碼登陸

在~/下, 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
相關文章
相關標籤/搜索