[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-03 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eGitConfig\u003c/code\u003e class for the GKE Hub v1 API is 2.5.0, with several previous versions available, ranging back to 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGitConfig\u003c/code\u003e is a class used for managing Git repository configurations for individual clusters within the GKE Hub.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGitConfig\u003c/code\u003e class allows users to set various properties, including the Git repository URL, sync branch, revision, path to sync, secret type, and synchronization frequency.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGitConfig\u003c/code\u003e class includes constructors for creating a new instance or copying an existing one, and implements several interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, and \u003ccode\u003eIDeepCloneable\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGitConfig\u003c/code\u003e can be used to configure the service account used for authorization, as well as an optional HTTPS proxy for communicating with the repository.\u003c/p\u003e\n"]]],[],null,["# GKE Hub v1 API - Class GitConfig (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/latest/Google.Cloud.GkeHub.V1.ConfigManagement.GitConfig)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/2.4.0/Google.Cloud.GkeHub.V1.ConfigManagement.GitConfig)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/2.3.0/Google.Cloud.GkeHub.V1.ConfigManagement.GitConfig)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/2.2.0/Google.Cloud.GkeHub.V1.ConfigManagement.GitConfig)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/2.1.0/Google.Cloud.GkeHub.V1.ConfigManagement.GitConfig)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/2.0.0/Google.Cloud.GkeHub.V1.ConfigManagement.GitConfig)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/1.2.0/Google.Cloud.GkeHub.V1.ConfigManagement.GitConfig)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/1.1.0/Google.Cloud.GkeHub.V1.ConfigManagement.GitConfig)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/1.0.0/Google.Cloud.GkeHub.V1.ConfigManagement.GitConfig) \n\n public sealed class GitConfig : IMessage\u003cGitConfig\u003e, IEquatable\u003cGitConfig\u003e, IDeepCloneable\u003cGitConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the GKE Hub v1 API class GitConfig.\n\nGit repo configuration for a single cluster. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e GitConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GitConfig](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/latest/Google.Cloud.GkeHub.V1.ConfigManagement.GitConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GitConfig](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/latest/Google.Cloud.GkeHub.V1.ConfigManagement.GitConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GitConfig](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/latest/Google.Cloud.GkeHub.V1.ConfigManagement.GitConfig), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.GkeHub.V1.ConfigManagement](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/latest/Google.Cloud.GkeHub.V1.ConfigManagement)\n\nAssembly\n--------\n\nGoogle.Cloud.GkeHub.V1.dll\n\nConstructors\n------------\n\n### GitConfig()\n\n public GitConfig()\n\n### GitConfig(GitConfig)\n\n public GitConfig(GitConfig other)\n\nProperties\n----------\n\n### GcpServiceAccountEmail\n\n public string GcpServiceAccountEmail { get; set; }\n\nThe GCP Service Account Email used for auth when secret_type is\ngcpServiceAccount.\n\n### HttpsProxy\n\n public string HttpsProxy { get; set; }\n\nURL for the HTTPS proxy to be used when communicating with the Git repo.\n\n### PolicyDir\n\n public string PolicyDir { get; set; }\n\nThe path within the Git repository that represents the top level of the\nrepo to sync. Default: the root directory of the repository.\n\n### SecretType\n\n public string SecretType { get; set; }\n\nType of secret configured for access to the Git repo.\n\n### SyncBranch\n\n public string SyncBranch { get; set; }\n\nThe branch of the repository to sync from. Default: master.\n\n### SyncRepo\n\n public string SyncRepo { get; set; }\n\nThe URL of the Git repository to use as the source of truth.\n\n### SyncRev\n\n public string SyncRev { get; set; }\n\nGit revision (tag or hash) to check out. Default HEAD.\n\n### SyncWaitSecs\n\n public long SyncWaitSecs { get; set; }\n\nPeriod in seconds between consecutive syncs. Default: 15."]]