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.

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

Updated