Skip to content

Latest commit

 

History

History
86 lines (47 loc) · 3.2 KB

CredentialManager.md

File metadata and controls

86 lines (47 loc) · 3.2 KB

Git Credential Manager for Windows

The Git Credential Manager for Windows (GCM) provides secure Git credential storage for Windows. GCM provides multi-factor authentication support for Azure DevOps, Team Foundation Server, GitHub, and BitBucket.

Usage

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

Assuming the GCM has been installed, using your favorite Windows console (Command Prompt, PowerShell, ConEmu, etc.), use the following command to interact directly with the GCM.

git credential-manager [<command> [<args>]]

Commands

delete (deprecated)

Removes stored credentials for a given URL. Any future attempts to authenticate with the remote will require authentication steps to be completed again.

This method is being deprecated and users should use "git credential reject" instead

deploy [--path <installation_path>] [--passive] [--force]

Deploys the Git Credential Manager for Windows package and sets Git configuration to use the helper.

deploy --path <installation_path>

Specifies a path (<installation_path>) for the installer to deploy to. If a path is provided, the installer will not seek additional Git installations to modify.

deploy --passive

Instructs the installer to not prompt the user for input during deployment and restricts output to error messages only.

When combined with --force all output is eliminated; only the return code can be used to validate success.

deploy --force

Instructs the installer to proceed with deployment even if prerequisites are not met or errors are encountered.

When combined with --passive all output is eliminated; only the return code can be used to validate success.

remove [--path <installation_path>] [--passive] [--force]

Removes the Git Credential Manager for Windows package and unsets Git configuration to no longer use the helper.

remove --path <installation_path>

Specifies a path (<installation_path>) for the installer to remove from. If a path is provided, the installer will not seek additional Git installations to modify.

remove --passive

Instructs the installer to not prompt the user for input during removal and restricts output to error messages only.

When combined with --force all output is eliminated; only the return code can be used to validate success.

remove --force

Instructs the installer to proceed with removal even if prerequisites are not met or errors are encountered.

When combined with --passive all output is eliminated; only the return code can be used to validate success.

version

Displays the current version.

clear

Synonym for delete.

install

Synonym for deploy.

uninstall

Synonym for remove.

get / store / erase / fill / approve / reject

Commands for interaction with Git.