git/init

Initialize Repository

Create an empty Git repository

git
init
repository

Command

git init

Explanation

git init is used to create a new Git repository. It creates a new repository in the current directory.

Examples

Initialize new repo in current directory

git init

Create new directory and initialize repo

git init project-name