git init [directory]
Create an empty Git repository or reinitialize an existing one
Arguments
Options
Name | Description |
---|
-q, --quiet | Only print error and warning messages |
--bare | Create a bare repository |
--object-format <format> | Specify the given object format |
--template <template_directory> | Specify the directory from which templates will be used |
--separate-git-dir <git dir> | Instead of initializing the repository as a directory to either $GIT_DIR or ./.git/, create a text file there containing the path to the actual repository. This file acts as filesystem-agnostic Git symbolic link to the repository |
-b, --initial-branch [branch-name] | Initial branch for new repo |
--shared [arg] | Specify that the Git repository is to be shared amongst several users. This allows users belonging to the same group to push into that repository |