Git Workflow

Push feature branches, create change proposals, and promote to production.

The Strayl CLI works on top of git. After running st init or st link, a git remote called strayl is added to your repository. All syncing happens through standard git operations with this remote.

Branches

Strayl uses two special branches:

You work on feature branches (any branch other than dev or main) and use st push to propose changes.

st push

Push a feature branch to Strayl and create a change proposal.

This is the primary command for proposing changes. It:

  1. Pushes the current branch (or a specified branch) to the strayl remote
  2. Creates a change proposal that appears in Manage → Updates in the web UI

Note: You cannot run st push on main or dev. Switch to a feature branch first.

Options

Examples

st pull

Pull the latest dev or main branch from Strayl into your local repository.

This runs git fetch strayl followed by git merge strayl/[branch]. Useful when the AI agent has made changes in the web UI and you want to continue locally.

st promote

Promote the dev branch to main, triggering a production deployment.

This merges dev into main on the Strayl server. The production deployment is updated automatically.

Typical workflow

Conflict resolution

If your change has conflicts with dev (shown as needs_restack status), you can restack it from the CLI:

Or resolve it manually:

StraylSTRAYL

The place where your code product lives

© 2026 Strayl. All rights reserved.