win10 credential manager

This commit is contained in:
CodyZhang
2020-06-12 15:55:12 +08:00
parent 8d39d459c1
commit 1114d0c6ca
4 changed files with 67 additions and 1 deletions

View File

@@ -1,5 +1,25 @@
## Git remote 登入驗證
### Windows 10 密碼管理
1. 安裝 Git Credential Manager for Windows
[Git Credential Manager for Windows](https://github.com/microsoft/Git-Credential-Manager-for-Windows/releases)
2. 設定 git credential.helper
```sh
git config --global credential.helper manager
```
在 windows 10 裡到以下的位置可以管理git的登入密碼
![windows 10 密碼管理](images/win10_credential.png)
![windows 10 密碼管理](images/win10_credential.png)
### git credential helper
- 查看目前的設定
```sh
git config --global credential.helper
```
### FAQ
- 認證管理員沒有相關密碼,沒有跳出詢問密碼,直接回應 fatal authentication failed.
暫時不知道什麼原因,不過可以直接到認證管理員新增一筆資料後,就可以正常運作了。格式如下
![Credential settings](images/win10_credential_entry.png)