mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-10-25 14:20:30 +08:00
It's actually not such a great idea to sync on git-fetch and git-ls-remote, as syncing is supposed to happen in the background already, and if you want to force a sync, you can just call `rad sync`. Previously, it would be annoying that when you called `rad sync` and then `git fetch`, it would still attempt another sync, for example. Moving forwards, it might make sense to call `git-fetch` on `rad sync` (so the other way around), because `git-fetch` is free (it doesn't talk to peers), and you almost always want your working copy up to date with your storage.
31 lines
899 B
Markdown
31 lines
899 B
Markdown
```
|
|
$ cd heartwood
|
|
$ git branch -r
|
|
alice@z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi/master
|
|
rad/master
|
|
```
|
|
|
|
```
|
|
$ git ls-remote alice@z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi 'refs/heads/*'
|
|
145e1e69bef3ad93d14946ea212249c2fa9b9828 refs/heads/alice/1
|
|
f2de534b5e81d7c6e2dcaf58c3dd91573c0a0354 refs/heads/master
|
|
```
|
|
|
|
``` (stderr)
|
|
$ git fetch alice@z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi
|
|
From rad://z42hL2jL4XNk6K8oHQaSWfMgCL7ji/z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi
|
|
* [new branch] alice/1 -> alice@z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi/alice/1
|
|
```
|
|
|
|
```
|
|
$ git branch -r
|
|
alice@z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi/alice/1
|
|
alice@z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi/master
|
|
rad/master
|
|
```
|
|
|
|
```
|
|
$ git rev-parse alice@z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi/alice/1
|
|
145e1e69bef3ad93d14946ea212249c2fa9b9828
|
|
```
|