# How do I commit the agent’s changes to Git?

Open Version control (Ctrl+Shift+G). Changes lists every uncommitted file with its diff, the commit message is drafted from what you asked Flockbay since the last commit, and Ctrl+Enter commits. Push and Pull are at the top of the panel.

Source: https://flockbay.com/docs/how-do-i-commit-the-agents-changes-to-git/ · Updated 2026-11-01

## Commit a turn’s work

1. Press Ctrl+Shift+G, or **Commit…** in Review changes, which opens the panel with the reply’s first line as the message.
2. On **Changes**, open a file for its diff, or **Discard** one you do not want.
3. Edit the drafted message, then press the commit button or Ctrl+Enter.
4. Press **Push** to send the commit to your remote; **Pull** brings in commits you do not have.

![The Version control panel on Changes: the repository and branch, Pull 1 and Push 2, six changed files, a warning about an 82 MB file not in Git LFS, a drafted commit message, and Commit 6 files to main.](https://flockbay.com/docs-captures/version-control-changes.webp?v=d0cd49332a)

## Who commits

You do, by default. In a project made elsewhere the AI commits only when you ask it to, and it never writes a name or an email into your Git config. A game with no repository yet has **Set up version control** in the game menu, with Git and Git LFS included, and **Publish to GitHub** follows once GitHub is connected.

Related: [Version control with Git and GitHub](/docs/version-control-with-git-and-github/), [How do I review what the agent changed?](/docs/how-do-i-review-what-the-agent-changed/), [How do I undo an agent’s change?](/docs/how-do-i-undo-an-agents-change/)
