grgit-init
Description
This command creates an empty Git repository - basically a .git
directory with subdirectories for objects
, refs/heads
, refs/tags
, and template files. An initial HEAD
file that references the HEAD of the master branch is also created.
Returns a Grgit instance.
Options
- dir
-
(
Object
, defaultnull
) The directory the repository should be initialized in. Can be aFile
,Path
, orString
. - bare
-
(
boolean
, defaultfalse
) Create a bare repository.