

Git-credential-oauth supports and several popular public hosts without any manual configuration needed. It is an open-source project and is supported by the community. Git Credential Manager is developed primarily by GitHub, Inc.

Git for Windows includes Git Credential Manager. This feature is useful whether you use personal access tokens or OAuth. So you do not need to re-authenticate on every push, GCM supports caching as well as a variety of platform-specific credential stores that persist between sessions. To use GCM with self-managed GitLab, see GitLab support. GCM supports without any manual configuration. Git Credential Manager (GCM) authenticates by default using OAuth. Subsequent authentication requires no interaction.

The first time you authenticate, the helper opens the web browser and GitLab asks you to authorize the app. This is compatible with two-factor authentication. The following Git credential helpers authenticate to GitLab using OAuth. You can use a personal access token instead.

When 2FA is enabled, you can’t use your password to authenticate with Git over HTTPS or the GitLab API. Use personal access tokens with two-factor authentication If you set up a device, also set up a TOTP so you can still access your account if you lose the device. This performs secure authentication on your behalf. You supply your username and password to sign in. You’re prompted to activate your WebAuthn device (usually by pressing a button on it) when Codes are generated by your one-time password authenticator (for example, a password
