Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.

The Git Create Repository action allows you to initialize a new local repository on your machine .

From the Create Repository tab select the directory where you want to initialize the new repository. The Use Default Local Repository option can be selected to initialize a repository in the directory specified in Tools > Options > Git as the default local repository.

Image Removedor reinitialise an existing local repository. This action is a wrapper for the git command line. For more information on the use and options for this action, refer to the git init command line documentation

To run this command, you will need to specify the directory to create the local repository in. 

Image Added

You need to select a directory that exists, otherwise the action will fail. If you run this action against a directory that already contains a repository, no information will be lost or re-written. It can be useful to do this in order to pick up recently added templates.

There are also a number options that can be executed from the Create Repository tab.

Image Removed

Quiet - Suppress output from Git.

Bare - Rather than place the administrative files in <Destination Directory>/.git place all the files in the <Destination Directory>.

Template Directory - Specify the directory to copy the repository templates from (override . This overrides the default of  <Git Installation Directory><git installation directory>/share/git-core/templates/).

Shared Separate git directory - Specify that the directory to create the repository will be shared by several users:

Umask/False - User permissions set as umask(2). This is the default when the shared option is not used.

Group/True - Make the repository group writeable.

All/World/Everybody - Same as Group/True option except the repository is readable by all users.

0xxx: - This option allows you to specify the umask file mode permissions by specifying an octal numberadministrative files in instead of the .git subfolder. A text file will be created in the .git subfolder containing this path to act as a symbolic link to the repository. If this is reinitialization, the repository will be moved to the specified path.

Quiet - Suppress output from git.

Bare - Create a bare repository; rather than place the repository administrative files in .git subfolder place all the repository files in the destination working directory.

Shared - This option only has relevance on linux and will be deprecated.

For more information on creating a git repository, see : the git init command line documentation