ZANARDI Bruno

Software Developper

About
Resume

Git Blog

Git command `init`

Definition

This command creates an empty Git repository - basically a .git directory with subdirectories for objects, refs/heads, refs/tags, and template files. An initial HEAD file that references the HEAD of the master branch is also created.

Basic usage

Creates a new local repository

$ git init

Creates a new local repository in the specified directory

$ git init <directory>