git init
Initialize a new Git repository
SetupSyntax
git init [directory]
Examples
git init— initgit init my-project— init my-project
Common flags & options
- •[directory] Create repo in optional directory
Initialize a new Git repository
Setupgit init [directory]
git init— initgit init my-project— init my-project