This fix makes using Git credentials more friendly to Windows users: it allows a credential helper to communicate using CR/LF line endings ("DOS line endings" commonly found on Windows) instead of LF-only line endings ("Unix line endings"). (Merged by Junio C Hamano - gitster - in commit 542b3c2, ) credential: treat CR/LF as line endings in the credential protocol See commit 356c473 () by Nikita Leonov ( nyckyta). With Git 2.29 (Q4 2020), the parser in the receiving end of the credential protocol is loosen to allow credential helper to terminate lines with CRLF line ending, as well as LF line ending. If they are incorrect, a simple printf "protocol=https\nhost=\nusername=xxx"| git-credential-manager-core erase will remove them (on Windows, Linux or Mac) If not, that might means your credentials were already stored. On the first push, a popup will appear asking for your credentials (username/password) for the target server (for instance ) See more at " Unable to change git account". Then your password (or rather a token is used nowadays) would be stored in the Windows Credential Manager. This is from the Microsoft multi-platform credential manager GCM. Ideally, you should enter: git config -global credential.helper manager-core
0 Comments
Leave a Reply. |