git init
to initialize an empty repository in the current directory.git init [<directory>]
to initialize the repository in the specified <directory>
.git init
in an existing repository is safe.git init
once per repository.git init [<directory>]
cd ~/my_project git init # Initializes a repo in ~/my_project cd ~ git init my_project # Initializes a repo in ~/my_project
Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️