[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis page provides documentation for the \u003ccode\u003eGitSource\u003c/code\u003e class within the Google Cloud Config V1 API, which is used to represent a set of files in a Git repository.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eGitSource\u003c/code\u003e documented is 1.7.0, and it contains information of older versions dating back to version 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGitSource\u003c/code\u003e class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from \u003ccode\u003eobject\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGitSource\u003c/code\u003e has properties such as \u003ccode\u003eDirectory\u003c/code\u003e, \u003ccode\u003eRef\u003c/code\u003e, and \u003ccode\u003eRepo\u003c/code\u003e, which allow for specifying the subdirectory, Git reference (branch or tag), and repository URL respectively.\u003c/p\u003e\n"],["\u003cp\u003eThere are also properties like \u003ccode\u003eHasDirectory\u003c/code\u003e, \u003ccode\u003eHasRef\u003c/code\u003e, and \u003ccode\u003eHasRepo\u003c/code\u003e that indicate whether their corresponding fields are set or not.\u003c/p\u003e\n"]]],[],null,["# Infrastructure Manager v1 API - Class GitSource (1.8.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.8.0 (latest)](/dotnet/docs/reference/Google.Cloud.Config.V1/latest/Google.Cloud.Config.V1.GitSource)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.Config.V1/1.7.0/Google.Cloud.Config.V1.GitSource)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.Config.V1/1.6.0/Google.Cloud.Config.V1.GitSource)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.Config.V1/1.5.0/Google.Cloud.Config.V1.GitSource)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Config.V1/1.4.0/Google.Cloud.Config.V1.GitSource)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Config.V1/1.3.0/Google.Cloud.Config.V1.GitSource)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Config.V1/1.2.0/Google.Cloud.Config.V1.GitSource)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Config.V1/1.1.0/Google.Cloud.Config.V1.GitSource)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Config.V1/1.0.0/Google.Cloud.Config.V1.GitSource) \n\n public sealed class GitSource : IMessage\u003cGitSource\u003e, IEquatable\u003cGitSource\u003e, IDeepCloneable\u003cGitSource\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Infrastructure Manager v1 API class GitSource.\n\nA set of files in a Git repository. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e GitSource \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GitSource](/dotnet/docs/reference/Google.Cloud.Config.V1/latest/Google.Cloud.Config.V1.GitSource), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GitSource](/dotnet/docs/reference/Google.Cloud.Config.V1/latest/Google.Cloud.Config.V1.GitSource), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GitSource](/dotnet/docs/reference/Google.Cloud.Config.V1/latest/Google.Cloud.Config.V1.GitSource), [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.Config.V1](/dotnet/docs/reference/Google.Cloud.Config.V1/latest/Google.Cloud.Config.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Config.V1.dll\n\nConstructors\n------------\n\n### GitSource()\n\n public GitSource()\n\n### GitSource(GitSource)\n\n public GitSource(GitSource other)\n\nProperties\n----------\n\n### Directory\n\n public string Directory { get; set; }\n\nOptional. Subdirectory inside the repository.\nExample: 'staging/my-package'\n\n### HasDirectory\n\n public bool HasDirectory { get; }\n\nGets whether the \"directory\" field is set\n\n### HasRef\n\n public bool HasRef { get; }\n\nGets whether the \"ref\" field is set\n\n### HasRepo\n\n public bool HasRepo { get; }\n\nGets whether the \"repo\" field is set\n\n### Ref\n\n public string Ref { get; set; }\n\nOptional. Git reference (e.g. branch or tag).\n\n### Repo\n\n public string Repo { get; set; }\n\nOptional. Repository URL.\nExample: '\u003chttps://github.com/kubernetes/examples.git\u003e'"]]