The [init] Command
Create an empty Libra repository
Usage
libra init [OPTIONS]
Description
This command creates the necessary directories and files for a new Libra repository. It also sets up the database and the initial configuration. By default, the repository is initialized with a .libra directory. You can initialize a bare repository with the --bare flag, which sets up the repository without a working directory, containing only Libra data.
Options
-
--bare
Initialize a bare repository.Git bare VS Libra bare:
Note:Unlike Git's
--bare
, the Libra init--bare
initializes a bare repository that contains Libra's own SQLite database. -
--template <template-directory>
Specify a directory from which templates will be used to initialize the repository. -
-b
,--initial-branch <INITIAL_BRANCH>
Override the name of the initial branch -
-h
,--help
Print help -
[directory]
Initialize the repository with specified directory -
-q
,--quiet
Suppress all output except for errors -
--shared[=(false|true|umask|group|all|world|everybody|<perm>)]
Set repository permissions for multi-user access:false
/umask
: use defaultumask
of the system.true
/group
: group-writable.all
/world
/everybody
: writable by all.<perm>
: 4-digit octal starts with0
.