Git · Setup and configuration

git init

Creates a repository in the current directory.

Syntax
git init

Example

Example
git init
# Initialised empty Git repository

More in this group

.gitignore git clone git config git help git remote

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course