Git command `init`
Definition
This command creates an empty Git repository - basically a
.git
directory with subdirectories forobjects
,refs/heads
,refs/tags
, and template files. An initialHEAD
file that references theHEAD
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>