# git init

*noun*

say it: **“git ih-NIT”** **/ɡɪt ɪˈnɪt/**

The Git command that turns a folder into a new, empty Git repository.

## What does **git init** do?

**git init** — Creates an empty Git repository in a folder or reinitializes an existing one.

```bash
mkdir recipe-book
git init recipe-book
```

## In a sentence

- “I ran **git init** in the project folder before my first commit.”

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

Updated: November 9, 2026

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