forkpress commit
forkpress commit stages, commits, pushes, and syncs the current ForkPress Git checkout branch.
It is an alias for forkpress push, named for the agent workflow: edit files, then commit the branch back to ForkPress so it becomes previewable.
Usage
forkpress commit [repo] [options]Arguments And Options
| Argument or option | Default | Description |
|---|---|---|
repo | . | Existing Git checkout or worktree. |
-m <message>, --message <message> | forkpress: update <branch> | Commit message to use when the checkout has local changes. |
--remote-name <name> | origin | Remote name to push to and fetch the normalized ref from. |
What It Does
commit uses the same implementation as push:
- Verifies that
repois a Git checkout. - Reads the current branch name and rejects detached
HEAD. - If the checkout is dirty, configures a local Git identity when missing, stages all changes, and creates a commit.
- Pushes
HEADtorefs/heads/<branch>on the configured remote. - Fetches the server-normalized ref and fast-forwards the checkout when possible.
If there are no local changes, commit still pushes the current HEAD and syncs the normalized ref.
Examples
Commit and push from the current checkout:
forkpress commit -m "Update homepage copy"Commit another worktree:
forkpress commit ../forkpress-agents/agent-1 -m "Adjust agent 1 patch"Use a non-default remote:
forkpress commit --remote-name forkpress -m "Update plugin template"Related Commands
Use forkpress push when you prefer the transport-oriented name. Use forkpress pull if ForkPress reports that the server-normalized ref is not a fast-forward.