How to initialize a Git repository $ git init Command git Description Initialize the current directory as a Git repository. Related How to clone a repository How to check the status