It still is rather unclear to me how I can throw away all my unpublished work and get back to the state as seen in some remote.
Basically something similar to:
git reset --hard some_remote/main git clean -fdx
The “nuke my changes from orbit” option of version control;-)
If you run
You will remove all local modifications. But you are still not like the remote state. I think the easiest way is to create a new empty channel and pull remote changes into it:
pijul channel new tmp pijul channel switch tmp # In case "main" was the current channel pijul channel delete main pijul pull firstname.lastname@example.org:pijul/manual --from-channel main --to-channel main pijul channel switch main pijul channel delete tmp