# read_git_remote_url_from_filesystem

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/_git/read_git_remote_url_from_filesystem)

Read the `origin` remote URL from the repository `config` file.

## Signature

```python
read_git_remote_url_from_filesystem(
    path: str | Path,
) -> str | None
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `path` | `str \| Path` | Yes | Directory or file path inside a repository. |

## Returns

`str | None`

The `origin` remote URL, an empty string when `path` is not inside a

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/e14e0adcbe78565ed3650e7f24b2a775d5437d25/libs/code/deepagents_code/_git.py#L372)