# How to add named remote?

**URL:** https://discourse.pijul.org/t/how-to-add-named-remote/870
**Category:** Question
**Created:** [February 5, 2022, 5:25pm UTC](https://discourse.pijul.org/t/how-to-add-named-remote/870 "2022-02-05T17:25:11Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![fzzr](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.pijul.org/fzzr/32/175_2.png) [@fzzr](https://discourse.pijul.org/u/fzzr)
#### Post date: [February 5, 2022, 5:25pm UTC](https://discourse.pijul.org/t/how-to-add-named-remote/870/1 "2022-02-05T17:25:12Z")

</div>

I just try old `--set-remote name` and this doesn’t exist.  
Something like `remote add` doesn’t exist too.  
What I missed?

---

<div class="post-metadata">

### Author: ![pmeunier](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.pijul.org/pmeunier/32/4_2.png) [@pmeunier](https://discourse.pijul.org/u/pmeunier)
#### Post date: [February 6, 2022, 9:42am UTC](https://discourse.pijul.org/t/how-to-add-named-remote/870/2 "2022-02-06T09:42:11Z")

</div>

add a `[remotes]` section in `.pijul/config`, with your named remotes there. For example, for my local copy of pijul, I have:

```auto
[remotes]
nest = "pmeunier@ssh.pijul.com:pijul/pijul"

```

---

<div class="post-metadata">

### Author: ![fzzr](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.pijul.org/fzzr/32/175_2.png) [@fzzr](https://discourse.pijul.org/u/fzzr)
#### Post date: [February 6, 2022, 9:44am UTC](https://discourse.pijul.org/t/how-to-add-named-remote/870/3 "2022-02-06T09:44:56Z")

</div>

Thanks 😊  
Maybe I’ll add command for it if it needed not to just me.

---

<div class="post-metadata">

### Author: ![fzzr](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.pijul.org/fzzr/32/175_2.png) [@fzzr](https://discourse.pijul.org/u/fzzr)
#### Post date: [February 7, 2022, 10:42am UTC](https://discourse.pijul.org/t/how-to-add-named-remote/870/4 "2022-02-07T10:42:14Z")

</div>

That’s strange. I just add `remote` record and nothing changed.

 ![Screenshot 2022-02-07 at 13.38.21](https://canada1.discourse-cdn.com/flex031/uploads/pijul/original/1X/4b1f2f665089ee23a3ffc54f055ad2b1934ff4c3.png)

* * *

Hm… 🤔 But `pijul push bbb` now works. 👍  
I’m sure that new remote should be presented in the list `pijul remote`.

---

<div class="post-metadata">

### Author: ![jeltsch](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.pijul.org/jeltsch/32/275_2.png) [@jeltsch](https://discourse.pijul.org/u/jeltsch)
#### Post date: [February 16, 2022, 1:02am UTC](https://discourse.pijul.org/t/how-to-add-named-remote/870/5 "2022-02-16T01:02:48Z")

</div>

I actually like the idea of not having such configuration commands. If the configuration is done via text files, you can just edit those text files. No need to repeat functionality. Similarly, there’s also no `bash` subcommand for editing `.bashrc`, for example. 😉

---

<div class="post-metadata">

### Author: ![alexsunny123](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@alexsunny123](https://discourse.pijul.org/u/alexsunny123)
#### Post date: [November 10, 2022, 1:57pm UTC](https://discourse.pijul.org/t/how-to-add-named-remote/870/6 "2022-11-10T13:57:30Z")

</div>

thanks for the awesome information.

---

<div class="post-metadata">

### Author: ![akkartik](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.pijul.org/akkartik/32/538_2.png) [@akkartik](https://discourse.pijul.org/u/akkartik)
#### Post date: [June 25, 2023, 5:12am UTC](https://discourse.pijul.org/t/how-to-add-named-remote/870/7 "2023-06-25T05:12:30Z")

</div>

I just tried this solution, and it didn’t work.

```auto
$ cat .pijul/config
default_remote = "akkartik@nest.pijul.com:akkartik/foo"

[hooks]
record = []

[remotes]

$ pijul remote
Error: Could not read configuration file at "foo/.pijul/config"

```

As you can see, even just adding the line with `[remotes]` causes `.pijul/config` to fail to parse. Adding an actual remote below doesn’t change that. Has the syntax changed since this thread? Thank you.
