# flyte.git

## Directory

### Classes

| Class | Description |
|-|-|
| [`GitStatus`](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.git/gitstatus/page.md) | A class representing the status of a git repository. |

### Methods

| Method | Description |
|-|-|
| [`config_from_root()`](#config_from_root) | Get the config file from the git root directory. |

## Methods

#### config_from_root()

```python
def config_from_root(
    path: pathlib.Path | str,
) -> flyte.config._config.Config | None
```
Get the config file from the git root directory.

By default, the config file is expected to be in `.flyte/config.yaml` in the git root directory.

| Parameter | Type | Description |
|-|-|-|
| `path` | `pathlib.Path \| str` | Path to the config file relative to git root directory (default |

**Returns:** Config object if found, None otherwise

## Subpages

- [GitStatus](https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.git/gitstatus/page.md)
  - Parameters
  - Methods
  - build_url()
  - from_current_repo()

---
**Source**: https://github.com/unionai/unionai-docs/blob/main/content/api-reference/flyte-sdk/packages/flyte.git/_index.md
**HTML**: https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.git/
