---
title: "get git repository latest commit hash"
method: GET
path: "/w/{workspace}/resources/git_commit_hash/{path}"
tags: ["resource"]
---

# get git repository latest commit hash

`GET /w/{workspace}/resources/git_commit_hash/{path}`

## Path parameters

- `workspace` string, required
- `path` string, required

## Query parameters

- `git_ssh_identity` string

## Response `200`

git commit hash

- object
  - `commit_hash` string, required — Latest commit hash from git ls-remote

---

[API](https://skmtc.dev/windmill/apis/windmill-api.md) · [All operations](https://skmtc.dev/windmill/apis/windmill-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/windmill/windmill-api/revisions/7b281701c340/schema)
