Skip to content

wayglass publish

Push the landed trunk and its why-notes to the repository’s original remote (GitHub, GitLab, …).

Fetches the trunk’s head and refs/notes/wayglass from Artifacts with a 60-second read-only token (in memory only) and pushes them to a git remote of this checkout with your own git credentials (ssh-agent, credential helper); Wayglass never holds those. The remote is origin unless –remote, and the branch is what that remote’s HEAD points at (refs/remotes/<remote>/HEAD), else the trunk’s branch, unless –branch.

The push is never forced. If the remote has commits the trunk lacks, it is refused with publish_rejected: bring those commits in through an intent first (declare, merge them, push, propose, land), then publish again. The notes ref is pushed as a whole; GitHub, GitLab and the like store it but show it only through git (git fetch origin ‘+refs/notes/wayglass:refs/notes/wayglass’, then git log), not in their web views.

With mirror: <remote> in .wayglass/config.yaml, ‘wayglass land’ does this after every land; publish is the by-hand or catch-up version.

Terminal window
wayglass publish [flags]
Terminal window
wayglass publish
wayglass publish --remote github --branch master --json
Flag Default Description
--branch string branch on that remote (default: its HEAD, else the trunk’s branch)
--no-notes push the branch only, not refs/notes/wayglass
--remote string origin git remote of this checkout to push to
Flag Default Description
--json print a JSON envelope for agents (no colour, prompts or spinners)

Exit codes and the --json envelope are the same for every command; see For agents.

  • wayglass: Zero Trust for agentic development