Configure gitlab authentication by access tokens in windows credential manager (requires Git Credential Manager to be enabled) - ckuhlmann/Tmr GitHub Wiki
To use access tokens for authentication with gitlab from Windows clients, store them in the Windows Credential Manager, using the following format:
(Control Panel -> Windows Credential Manager -> click Add a generic credential)
| Field | Data | Example |
|---|---|---|
| Network address: | git:https://<gitlab-server-subdomain>.<gitlab-server-domain>.<gitlab-server-tld> |
git:my.gitlabserver.xyz |
| username: | git |
git |
| password: | <gitlab-token> |
s0MetOk3nFR0mgITL4b |
Ensure also that the git credential helper is active and not disabled by a .gitconfig entry of
[credential]
# this _disables_ the credential helper and will _prevent_ using tokens in most git clients and the command line for authentication.
helper =
The Git Credential Manager helper should also provide an input form when no entry is found on connect and it should add the input to the Windows Credential Manager. It is important that the username is git and not your gitlab username. Use your token as password. User identifications is provided by the token.