Skip to content

Git Operations

Every branch is a full git clone on its own git branch. Tarsk provides a Git Ops control in the chat dock footer so you can commit, push, and fetch without leaving the app.

Git Ops sits in the bottom-left of the chat footer. It is a split button: the main label changes with git state (Commit, Create PR, etc.), and the chevron opens a dropdown with additional actions.

Status dots in the Branches list indicate:

  • Brand dot — uncommitted local changes
  • Orange dot — an open pull request exists (or needs updating)
  • Animated dot — agent is processing in that branch
LabelWhen it appears
CommitUncommitted changes exist
Create PRCommitted and pushed, no open PR yet
Merge PRAn open pull request exists and is ready to merge
OperationDescription
Sync with {branch}Rebase your branch onto the latest default branch
Quick CommitGenerate an AI commit message and commit in one step (⌘⇧C)
FetchDownload remote updates without merging
PullPull latest changes from the remote branch
Push Branch to RemoteCreate the remote branch and push (when no remote branch exists)
Push CommitsPush unpushed commits to the remote branch
HistoryView the commit log for this branch
Create Pull RequestOpen the PR creation dialog (⌘⇧P)
Create RepoCreate a new GitHub repository from this branch
View in GitHubOpen the repository on GitHub (⌘⇧G)

Use the Review dock panel to view diffs and revert individual files. Checkpoints are created automatically before agent runs and restored from the chat message header — not from this menu.


  1. Click Commit on the Git Ops button (or Quick Commit in the dropdown).
  2. The commit dialog shows the number of changed files.
  3. Enter a commit message, or click Generate to have the AI write a conventional commit message based on the diff.
  4. Click Commit.

All modified and new files are staged automatically (git add -A) before committing.

The Generate button sends the current diff to the AI model and returns a commit message following the conventional commits format (e.g. feat(auth): add JWT refresh token endpoint). You can edit the generated message before committing.


  1. Click Push Commits or Push Branch to Remote in the Git Ops dropdown.
  2. Tarsk runs git push -u origin <branch> to push the branch and set the upstream tracking reference.
  3. A success message confirms the push.

If the push fails because the remote has commits you don’t have locally (non-fast-forward), run Fetch first, then resolve any conflicts before pushing again.


Click Fetch in the Git Ops dropdown to run git fetch origin. This updates your local knowledge of what’s on the remote without modifying your working tree or current branch.


If the branch doesn’t have a remote origin yet (e.g. you scaffolded a new app):

  1. Click Create Repo in the Git Ops dropdown.
  2. Enter the repository name and visibility (public/private).
  3. Click Create.

Tarsk runs gh repo create --source . --push, which creates the repository on GitHub, sets it as the remote origin, and pushes the current branch.


Click History in the Git Ops dropdown to open a log of commits on this branch, showing commit hash, message, author, and date.


Click Sync with {branch} in the Git Ops dropdown to pull the latest changes from the default branch (usually main or master) into your branch’s git branch using rebase.

Sync automatically:

  1. Pushes any unpushed commits on your branch first (if the branch has diverged)
  2. Runs git pull --rebase origin <default-branch> to replay your commits on top of the latest default branch

If rebase conflicts occur, resolve them manually in your IDE, then continue the rebase.


  1. Open the Review dock panel.
  2. Find the file you want to revert.
  3. Click Revert on that file’s diff.

Tarsk restores the file to its last committed state (HEAD). For untracked or newly staged files, the file is deleted from disk entirely.


A checkpoint is a snapshot of the working tree before an agent run. Tarsk creates one automatically before the agent starts making changes (using git stash internally).

  1. Find the user message in the chat that triggered the run.
  2. Click Restore checkpoint on that message.
  3. Confirm in the dialog.

This is destructive — all uncommitted changes and conversation messages since the checkpoint are lost.


ActionShortcut
Open Git Ops menu⌘⇧B
Quick Commit⌘⇧C
Create Pull Request⌘⇧P
View in GitHub⌘⇧G

Quick Commit only appears when uncommitted changes exist and auto-generate commit messages is enabled. Create Pull Request requires commits ahead of the default branch with no open PR.


Whether changes go through pull requests is controlled by the project’s Commit Method setting in Project Settings:

  • Pull Request — feature branches and PR workflow via gh
  • Direct — commits and pushes to the branch directly