Files
heartwood/radicle-cli/examples/rad-init-no-git.md
T
josibake ce1e1f71ae cli: Improve rad init wording
If the user passes a <path> argument to init, it is incorrect and a
bit confusing to reference the "current directory" or "this directory"
e.g. "run rad . in current directory" when the repo was not created in the
current directory and was created with a path argument instead.

Use the path provided by the user in help text, otherwise reference
the current directory.
2024-03-11 13:08:03 +01:00

356 B

If you try to init from a directory that doesn't contain a Git repository, it will fail:

$ rad init
✗ Error: a Git repository was not found at the given path

Ok so let's initialize one.

$ git init -q

Now we try again.

$ rad init
✗ Error: repository head must point to a commit

Looks like we need a commit.