diff --git a/GVFS/GVFS/CommandLine/GVFSVerb.cs b/GVFS/GVFS/CommandLine/GVFSVerb.cs index 6d464b223..1e25aa429 100644 --- a/GVFS/GVFS/CommandLine/GVFSVerb.cs +++ b/GVFS/GVFS/CommandLine/GVFSVerb.cs @@ -312,6 +312,11 @@ public static bool TrySetRequiredGitConfigSettings(Enlistment enlistment) // Disable the builtin FS Monitor in case it was enabled globally. { "core.fsmonitor", "false" }, + + // Set the GCM credential method to use OAuth tokens. + // See https://github.com/git-ecosystem/git-credential-manager/blob/release/docs/configuration.md#credentialazreposcredentialtype + // for more information. + { "credential.azreposCredentialType", "oauth" }, }; if (!TrySetConfig(enlistment, requiredSettings, isRequired: true))