Files
memo_git/credential.md
2020-06-12 15:55:12 +08:00

25 lines
840 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 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)
### git credential helper
- 查看目前的設定
```sh
git config --global credential.helper
```
### FAQ
- 認證管理員沒有相關密碼,沒有跳出詢問密碼,直接回應 fatal authentication failed.
暫時不知道什麼原因,不過可以直接到認證管理員新增一筆資料後,就可以正常運作了。格式如下
![Credential settings](images/win10_credential_entry.png)