Files
heartwood/radicle-cli/examples/rad-remote.md
T
Alexis Sellier e9ef0f4aa4 cli: Consolidate working copy remote setup
We consolidate the setup done by `rad checkout`, `rad clone` and `rad
remote add`, so that they all check for node aliases, and are all
capable of setting up tracking branches etc.
2023-06-13 11:09:42 +02:00

872 B

Now, let's add a bob as a new remote:

$ rad remote add did:key:z6Mkt67GdsW7715MEfRuP4pSZxJRJh6kj6Y48WRqVv4N1tRk --name bob
✓ Remote bob added

Now, we can see that there is a new remote in the list of remotes:

$ rad remote list
bob z6Mkt67GdsW7715MEfRuP4pSZxJRJh6kj6Y48WRqVv4N1tRk (fetch)
rad (canonical upstream)                             (fetch)
rad z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi (push)

You can see both bob and rad as remotes. The rad remote is our personal remote of the project.

When we're finished with the bob remote, we can remove it:

$ rad remote rm bob
✓ Remote `bob` removed

Now, add another time bob but without specify the name, so we should be able to fetch the node alias from our db!

$ rad remote add did:key:z6Mkt67GdsW7715MEfRuP4pSZxJRJh6kj6Y48WRqVv4N1tRk
✓ Remote bob added