Temper
Menu

Commit Pro

Commit a working copy to GitHub or GitLab from the Git menu, or as part of publishing.

On this page

Committing sends the working copy to the branch of your repository. It doesn't change the live site. You can commit on its own, or as part of a publish.

Commit from the Git menu#

  1. Save your open files. Unsaved edits aren't included.
  2. Click Git in the toolbar and choose Commit….
  3. The dialog lists the files that differ from the branch.
  4. Enter a Commit message and click Commit.

The Commit button waits while the branch has commits you haven't pulled ("The branch has commits you have not pulled. Pull first."), or while there's nothing to commit.

The first commit from a site that has never synced replaces the files that differ on the branch with your versions; the dialog says so first. An empty repository gets its first commit from here. On GitLab, a branch that doesn't exist yet is started from the default branch.

Commit when you publish#

When the project has a repository you can push to, the publish dialog checks the branch and offers Then commit to branch on GitHub (or GitLab). It's ticked by default, and the button becomes Publish and commit.

Temper commits after the publish, not before, so the branch records what actually went live. If the publish is undone by the health check, nothing is committed. If the commit fails, the publish still stands: Temper says so, and you can commit again from the Git menu.

The option is off and can't be ticked while the branch has commits you haven't pulled.

Safety#

  • A commit refuses if the branch moved since your last pull. Temper reads the branch head again just before writing and stops if someone pushed meanwhile: "Someone pushed to the branch while you were committing. Pull, then commit again."
  • Paths in .gitignore are never committed.
  • The source repository is never committed to.

From an AI assistant#

An assistant can commit with git_commit once you've turned on Let AI tools run code, publish and commit. See AI assistants over MCP.