1. 程式人生 > >Git免密碼登錄

Git免密碼登錄

.com per helper 文件 免密碼 lua als username vim

在~/下, touch創建文件 .git-credentials:
touch .git-credentials

# 用vim編輯此文件,
vim .git-credentials

#輸入內容格式
https://username:[email protected]

2. 在終端下執行

git config --global credential.helper store

可以看到~/.gitconfig文件,會多了一項:
[credential]
    helper = store

Git免密碼登錄