Files
heartwood/crates/radicle-cli/examples/rad-init-no-git.md
T
Lorenz Leutgeb 5bc2dc677b repo: Move workspace crates into crates subdirectory
This keeps the top level of the repo cleaner, e.g.
<https://github.com/radicle-dev/heartwood> scrolls less and
<https://app.radicle.xyz/nodes/rosa.radicle.xyz/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5/>
might show more files at the top level.

This way we also don't have to explicitly name all crates in
`Cargo.toml`.
2025-06-09 15:09:21 +02:00

23 lines
356 B
Markdown

If you try to `init` from a directory that doesn't contain a Git repository,
it will fail:
``` (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.
``` (fail)
$ rad init
✗ Error: repository head must point to a commit
```
Looks like we need a commit.