---
title: utils.git API Reference
description: Utilities for retrieving Git repository metadata such as branch, commit, and origin URL, used in Ultralytics projects.
keywords: Ultralytics, Git, GitRepo, branch, commit, origin, repository, utils, metadata, version control
---

# Reference for `ultralytics/utils/git.py`

!!! success "Improvements"

    This page is sourced from [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/git.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/git.py). Have an improvement or example to add? Open a [Pull Request](https://docs.ultralytics.com/help/contributing) — thank you! 🙏

<br>

## ::: ultralytics.utils.git.GitRepo

<br><br>
