Permalink
69db585 Sep 12, 2018
3 contributors

Users who have contributed to this file

@gistofj @XhmikosR @sryabkov
17 lines (11 sloc) 1.14 KB

Git Askpass for Windows

Git Askpass for Windows (Askpass) provides secure Git credential storage for Windows. Askpass provides multi-factor authentication support for Azure DevOps, Team Foundation Server, and GitHub.

Usage

After installation and configuration, Git will use the Git Askpass and you will only need to interact with any authentication dialogs asking for credentials. The Askpass stays invisible as much as possible, so ideally you'll forget that you're depending on Askpass at all.

git askpass

For Git to use Askpass correctly, the GIT_ASKPASS environment variable needs contain the full path to the git-askpass.exe executable (example: setx GIT_ASKPASS "C:\Program Files\Git\mingw64\libexec\git-core\git-askpass.exe"). SSH can also be configured to use Askpass in the same manner using the SSH_ASKPASS environment variable; however, SSH currently will not use Askpass if it detects a TTY console (ala the ability to just ask on the console).