# git write-tree

say it: **“GIT RYTE TREE”** **/ɡɪt ˈraɪt triː/**

Creates a tree object from the current index and prints its object ID.

## What does **git write-tree** do?

**git write-tree** — Creates a tree object from the current index and prints its object ID.

```bash
git write-tree
```

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-write-tree
