# git hash-object

say it: **“GIT HASH OB-jekt”** **/ɡɪt hæʃ ˈɒbdʒɛkt/**

Calculates an object ID for content and can optionally write the resulting blob object.

## What does **git hash-object** do?

**git hash-object** — Calculates an object ID for content and can optionally write the resulting blob object.

```bash
git hash-object menu.txt
```

Level: Master · [More Git terms at this level](https://www.ask-codey.com/glossary?category=git&level=5)

Updated: November 17, 2026

Source: https://www.ask-codey.com/glossary/git-hash-object
