1. 程式人生 > >git pull push 不用輸入使用者名稱和密碼的方法 免輸密碼

git pull push 不用輸入使用者名稱和密碼的方法 免輸密碼

1.在計算機的安裝盤下找到 ‘使用者’ 這個資料夾開啟。

2.找到’使用者’ 資料夾下面有個和你計算機的名字一樣的資料夾。

3.新建’.gitconfig’ 檔案

4.用編輯器開啟新建檔案,輸入:

[user] name = ‘你的git使用者名稱’ email = ‘你的git郵箱’ [credential] helper = store

5.儲存後,隨意開啟一個專案,pull 或者 push 一次,下次就不需要輸入密碼了。

親測有用…