1. 程式人生 > >Windows下Git免密碼

Windows下Git免密碼

-- PE div AS 文件 創建 技術 git image

  Windows下Git在使用http方式的時候clone,pull,push需要輸入用戶名及密碼,通過以下設置可以免密碼

  在用戶文件夾創建文件.git-credentials內容如下

https://{用戶名}:{密碼}@github.com

  在git bash終端執行命令

git config --global credential.helper store

  在用戶文件夾下面的文件.gitconfig會生成以下內容

技術分享圖片

Windows下Git免密碼