mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-16 08:10:40 +08:00
With the latest changes to fetching, `--scope all` will now clone all remotes listed by the serving node. Simplify by the `rad-clone-all` example by removing the extra fetch and removing the corresponding TODO. Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett
75 lines
2.2 KiB
Markdown
75 lines
2.2 KiB
Markdown
```
|
||
$ rad clone rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji --scope all
|
||
✓ Tracking relationship established for rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji with scope 'all'
|
||
✓ Fetching rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji from z6MknSL…StBU8Vi..
|
||
✓ Forking under z6Mkux1…nVhib7Z..
|
||
✓ Creating checkout in ./heartwood..
|
||
✓ Remote alice@z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi added
|
||
✓ Remote-tracking branch alice@z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi/master created for z6MknSL…StBU8Vi
|
||
✓ Repository successfully cloned under [..]/heartwood/
|
||
╭────────────────────────────────────╮
|
||
│ heartwood │
|
||
│ Radicle Heartwood Protocol & Stack │
|
||
│ 0 issues · 0 patches │
|
||
╰────────────────────────────────────╯
|
||
Run `cd ./heartwood` to go to the project directory.
|
||
```
|
||
|
||
We can now have a look at the new working copy that was created from the cloned
|
||
repository:
|
||
|
||
```
|
||
$ cd heartwood
|
||
$ cat README
|
||
Hello World!
|
||
```
|
||
|
||
Let's check that we have all the namespaces in storage:
|
||
|
||
```
|
||
$ rad inspect --refs
|
||
z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi
|
||
└── refs
|
||
├── cobs
|
||
│ └── xyz.radicle.id
|
||
│ └── [...]
|
||
├── heads
|
||
│ └── master
|
||
└── rad
|
||
├── id
|
||
└── sigrefs
|
||
z6Mkt67GdsW7715MEfRuP4pSZxJRJh6kj6Y48WRqVv4N1tRk
|
||
└── refs
|
||
├── heads
|
||
│ └── master
|
||
└── rad
|
||
└── sigrefs
|
||
z6Mkux1aUQD2voWWukVb5nNUR7thrHveQG4pDQua8nVhib7Z
|
||
└── refs
|
||
├── heads
|
||
│ └── master
|
||
└── rad
|
||
└── sigrefs
|
||
```
|
||
|
||
We can then setup a git remote for `bob`:
|
||
|
||
```
|
||
$ rad remote add z6Mkt67GdsW7715MEfRuP4pSZxJRJh6kj6Y48WRqVv4N1tRk --name bob
|
||
✓ Remote bob added
|
||
✓ Remote-tracking branch bob/master created for z6Mkt67…v4N1tRk
|
||
```
|
||
|
||
And fetch his refs:
|
||
|
||
```
|
||
$ git fetch --all
|
||
Fetching rad
|
||
Fetching alice@z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi
|
||
Fetching bob
|
||
$ git branch --remotes
|
||
alice@z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi/master
|
||
bob/master
|
||
rad/master
|
||
```
|