v68

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-011,21696712.3 MB
repos

Get the hash algorithm for a repository

Returns the hash algorithm used to store repository objects.

get/repos/{owner}/{repo}/hash-algorithm

Path parameters

ownerstring required

The account owner of the repository. The name is not case sensitive.

repostring required

The name of the repository without the .git extension. The name is not case sensitive.

Response

Response

hash_algorithm'sha1' | 'sha256' required

The Git hash algorithm used by this repository.

Example response

{
  "hash_algorithm": "sha1"
}