1
0
Форкнуть 0
Secure Git credential storage for Windows with support for Visual Studio Team Services, GitHub, and Bitbucket multi-factor authentication.
Перейти к файлу
James Fenton 28f85662b6 Set the default web proxy for ADAL to use 2019-09-04 16:36:25 +02:00
.github/ISSUE_TEMPLATE Clarify questions for users 2019-01-25 09:52:12 -05:00
Assets Clean up source code and licenses. 2017-09-01 11:20:14 -04:00
AzureDevOps.Authentication Workaround ADAL 3.x bug by catching all exceptions 2019-01-25 14:11:48 +00:00
Bitbucket.Authentication issue-742 Grab keyboard focus when the Bitbucket dialog opens. Try to ensure the dialogs are not missed by users by attempting to place them topmost. 2018-09-04 20:29:16 +01:00
Cli Support AAD on MSA accounts 2019-01-07 10:27:36 -05:00
Docs Merge branch 'master' into patch-4 2019-03-11 09:27:25 -04:00
GcmParentWindowTest Azure DevOps Rebranding 2018-09-12 17:21:36 -04:00
GitHub.Authentication sln: clean up proxy project files. 2018-07-27 23:51:46 -04:00
Installer Rebranding fixes 2018-09-17 15:22:31 -04:00
Microsoft.Alm.Authentication Set the default web proxy for ADAL to use 2019-09-04 16:36:25 +02:00
Shared Merge pull request #767 from jeschu1/pathpriority 2018-09-27 15:43:04 -04:00
.gitattributes initial check-in 2015-03-18 12:04:29 -07:00
.gitignore build: update .gitignore 2018-05-03 14:56:28 -04:00
CodeMaid.config Ran CodeMaid on the entire solution. 2017-04-21 11:55:37 -04:00
GitCredentialManager.sln Azure DevOps Rebranding 2018-09-12 17:21:36 -04:00
LICENSE.txt Rename LICENSE.TXT to LICENSE.txt. 2016-12-26 11:00:51 +02:00
README.md Azure DevOps Rebranding 2018-09-12 17:21:36 -04:00
_config.yml Set theme jekyll-theme-minimal 2017-08-03 13:09:04 -04:00
analysisRules.ruleset build: cleanup warnings 2018-06-27 12:55:37 -04:00
appveyor.yml build: update appveyor.yml 2018-05-14 16:13:41 -04:00
build-docs.cmd Move doc build script to root of sln. 2017-03-06 10:22:10 -05:00
build.props sln: clean up proxy project files. 2018-07-27 23:51:46 -04:00
build.targets build: enable artifact signing 2018-07-03 17:34:29 -04:00
coverity.bat Update coverity.bat for VS2017. 2017-08-06 12:06:15 +03:00
devops-ci.yml Azure DevOps Rebranding 2018-09-12 17:21:36 -04:00
devops-pr.yml Azure DevOps Rebranding 2018-09-12 17:21:36 -04:00
devops-rs.yml Azure DevOps Rebranding 2018-09-12 17:21:36 -04:00
devops-tt.yml Azure DevOps Rebranding 2018-09-12 17:21:36 -04:00
proxy.props sln: clean up proxy project files. 2018-07-27 23:51:46 -04:00
test.props sln: clean up proxy project files. 2018-07-27 23:51:46 -04:00
test.targets build: copy symbols to .\Symbols folder. 2018-05-03 15:37:07 -04:00
vsts-ci.yml build: more paramaterization 2018-08-13 14:36:57 -04:00
vsts-pr.yml build: more paramaterization 2018-08-13 14:36:57 -04:00
vsts-rs.yml build: fix realsign builds 2018-08-13 14:59:21 -04:00
vsts-tt.yml build: more paramaterization 2018-08-13 14:36:57 -04:00
xunit.runner.json Clean up source code and licenses. 2017-09-01 11:20:14 -04:00

README.md

Git Credential Manager for Windows

GitHub Release Build status Coverity Scan Build Status GitHub Downloads @MicrosoftGit on Twitter


NOTICE: Experiencing GitHub push/fetch problems?

As of 22 Feb 2018, GitHub has disabled support for weak encryption which means many users will suddenly find themselves unable to authenticate using a Git for Windows which (impacts versions older than v2.16.0). DO NOT PANIC, there's a fix. Update Git for Windows to the latest (or at least v2.16.0).

The most common error users see looks like:

fatal: HttpRequestException encountered.
   An error occurred while sending the request.
fatal: HttpRequestException encountered.
   An error occurred while sending the request.
Username for 'https://github.com':

If, after updating Git for Windows, you are still having problems authenticating with GitHub, please read this Developer Community topic which contains additional remedial actions you can take to resolve the problem.

If you are experiencing issue when using Visual Studio, please read Unable to connect to GitHub with Visual Studio.


The Git Credential Manager for Windows (GCM) provides secure Git credential storage for Windows. It's the successor to the Windows Credential Store for Git (git-credential-winstore), which is no longer maintained. Compared to Git's built-in credential storage for Windows (wincred), which provides single-factor authentication support working on any HTTP enabled Git repository, GCM provides multi-factor authentication support for Azure DevOps, Team Foundation Server, GitHub, and Bitbucket.

This project includes:

  • Secure password storage in the Windows Credential Store.
  • Multi-factor authentication support for Azure DevOps.
  • Two-factor authentication support for GitHub.
  • Two-factor authentication support for Bitbucket.
  • Personal Access Token generation and usage support for Azure DevOps, GitHub, and Bitbucket.
  • Non-interactive mode support for Azure DevOps backed by Azure Directory.
  • NTLM/Kerberos authentication for Team Foundation Server (see notes).
  • Optional settings for build agent optimization.

Community

This is a community project so feel free to contribute ideas, submit bugs, fix bugs, or code new features. For detailed information on how the GCM works go to the wiki.

Download and Install

To use the GCM, you can download the latest installer. To install, double-click GCMW-{version}.exe and follow the instructions presented.

When prompted to select your terminal emulator for Git Bash you should choose the Windows' default console window, or make sure GCM is configured to use modal dialogs. GCM cannot prompt you for credentials, at the console, in a MinTTY setup.

Manual Installation

Note for users with special installation needs, you can still extract the gcm-{version}.zip file and run install.cmd from an administrator command prompt. This allows specification of the installation options explained below.

Installation in an MSYS2 Environment

To use the GCM along with git installed with pacman in an MSYS2 environment, simply download a release zip and extract the contents directly into C:\msys64\usr\lib\git-core (assuming your MSYS2 environment is installed in C:\msys64). Then run:

git config --global credential.helper manager

How to use

You don't. It magically works when credentials are needed. For example, when pushing to Azure DevOps, it automatically opens a window and initializes an oauth2 flow to get your token.

Build and Install from Sources

To build and install the GCM yourself, clone the sources, open the solution file in Visual Studio, and build the solution. All necessary components will be copied from the build output locations into a .\Deploy folder at the root of the solution. From an elevated command prompt in the .\Deploy folder issue the following command git-credential-manager install. Additional information about development and debugging are available in our documents area.

Various options are available for uniquely configured systems, like automated build systems. For systems with a non-standard placement of Git use the --path <git> parameter to supply where Git is located and thus where the GCM should be deployed to. For systems looking to avoid checking for the Microsoft .NET Framework and other similar prerequisites use the --force option. For systems looking for silent installation without any prompts, use the --passive option.

Additional Resources

Contribute

There are many ways to contribute.

  • Submit bugs and help us verify fixes as they are checked in.
  • Review code changes.
  • Contribute bug fixes and features.

Code Contributions

For code contributions, you will need to complete a Contributor License Agreement (CLA). Briefly, this agreement testifies that you grant us permission to use the submitted change according to the terms of the project's license, and that the work being submitted is under the appropriate copyright.

Please submit a Contributor License Agreement (CLA) before submitting a pull request. You may visit https://cla.microsoft.com to sign digitally. Alternatively, download the agreement Microsoft Contribution License Agreement.pdf, sign, scan, and email it back to cla@microsoft.com. Be sure to include your GitHub user name along with the agreement. Once we have received the signed CLA, we'll review the request.

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

License

This project uses the MIT License.