Skip to content

nt init

Name

the-notewriter init — Create an empty The NoteWriter repository.

Synopsis

Usage:
nt init [flags]
Flags:
-h, --help help for init

Description

This command creates an empty The NoteWriter repository — basically a .nt directory with subdirectories for objects, refs, and default configuration files. A default index without any commits will be created.

Running nt init in an existing repository is safe. It will not overwrite things that are already there.

Example

  • Init a new repository:

    $ nt init
    $ tree -a
    .
    ├── .nt
    │   ├── .gitignore
    │   └── config
    └── .ntignore
    1 directory, 3 files

See Also

  • nt-add to add your first objects