How to add named remote?

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

1 Like

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

[remotes]
nest = "pmeunier@ssh.pijul.com:pijul/pijul"
1 Like

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

1 Like

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


Hm… :thinking: But pijul push bbb now works. :+1:
I’m sure that new remote should be presented in the list pijul remote.

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. :wink:

2 Likes

thanks for the awesome information.

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

$ 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.

1 Like