Skip to main content

Initializes a new local Git repository.

# To initialize a new local repository:
git init

# To initialize a barebones repository, suitable for use as a remote over ssh:
git init --bare