If you run
pijul reset
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 login@ssh.pijul.com:pijul/manual --from-channel main --to-channel main
pijul channel switch main
pijul channel delete tmp
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:
The “nuke my changes from orbit” option of version control;-)