# Class GitSource (0.7.0)

0.7.0 (latest) 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.21

    GitSource(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A set of files in a Git repository.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `repo` | `str` Optional. Repository URL. Example: 'https://github.com/kubernetes/examples.git' This field is a member of `oneof`_ `_repo`. |
| `directory` | `str` Optional. Subdirectory inside the repository. Example: 'staging/my-package' This field is a member of `oneof`_ `_directory`. |
| `ref` | `str` Optional. Git reference (e.g. branch or tag). This field is a member of `oneof`_ `_ref`. |