Skip to content
zero2vibecodelearn vibe coding

What git init does

git init: Start a new Git repository in the current folder.

The git command page covers what it does in general, with an example.

gitinit
  • git— command — track changes to your project and share them
  • init— subcommand — start a new repository in this folder

What it does when you run it

$ git init
Initialized empty Git repository in /home/user/.git/

Run it yourself

The same files. Nothing here can break, and nothing leaves your browser.

Explain other commands

Written by Mikhail Kuzmitskii