mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-02 01:40:28 +08:00
We were using the two pretty interchangeably. "Project" should only be used to refer to the repository payload. "Repository" should be used when referring to the resource that is fetched, synced, cloned, checked out etc.
53 lines
1.5 KiB
Markdown
53 lines
1.5 KiB
Markdown
If we have fetched a project, then we do not have a fork of the
|
||
repository in the storage, i.e. there is no ref hierarchy for our
|
||
NID. This is demonstrated below where our NID is
|
||
`z6Mkt67GdsW7715MEfRuP4pSZxJRJh6kj6Y48WRqVv4N1tRk`:
|
||
|
||
```
|
||
$ rad inspect rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji --refs
|
||
z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi
|
||
└── refs
|
||
├── cobs
|
||
│ └── xyz.radicle.id
|
||
│ └── [...]
|
||
├── heads
|
||
│ └── master
|
||
└── rad
|
||
├── id
|
||
└── sigrefs
|
||
```
|
||
|
||
To remedy this, we can use the `rad fork` command for the project we
|
||
wish to fork:
|
||
|
||
```
|
||
$ rad fork rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji
|
||
✓ Forked repository rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji for z6Mkt67GdsW7715MEfRuP4pSZxJRJh6kj6Y48WRqVv4N1tRk
|
||
```
|
||
|
||
Now, if we `rad inspect` the project's refs again we will see that we
|
||
have a copy of the main set of refs:
|
||
|
||
```
|
||
$ rad inspect rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji --refs
|
||
z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi
|
||
└── refs
|
||
├── cobs
|
||
│ └── xyz.radicle.id
|
||
│ └── [...]
|
||
├── heads
|
||
│ └── master
|
||
└── rad
|
||
├── id
|
||
└── sigrefs
|
||
z6Mkt67GdsW7715MEfRuP4pSZxJRJh6kj6Y48WRqVv4N1tRk
|
||
└── refs
|
||
├── heads
|
||
│ └── master
|
||
└── rad
|
||
└── sigrefs
|
||
```
|
||
|
||
We are now able to setup a remote in our own working copy of the
|
||
project and push to our own fork.
|