Source control
Source Control in IZ Code runs the same Git extension that ships with VS Code, so staging, committing, branches, diffs and the commit graph work the way you expect, on your machine and on remote hosts. An agent can also write the commit message for you.
You need Git installed on the machine that holds the repository. Open Source Control from the Activity Bar or with View ▸ Source Control.
What you see#
The Source Control view is made of panes you can collapse and resize. Opening one gives it most of the height.
| Pane | What it shows |
|---|---|
| Repositories | Every Git repository in the workspace, when there is more than one. |
| Changes | The commit message box, the Commit button, and your changes grouped into staged and unstaged changes, with a count on each group. |
| Graph | The commit history of the current repository as a graph. |
Extensions can add their own panes here, for example GitLens. The Activity Bar icon shows a badge with the number of changes.
The status bar shows the current branch. Click it to switch branches or create a new one.
Review and commit#
- Look at your changes Click a file in Changes to open a diff of it. In the editor, coloured bars in the gutter mark added, changed and deleted lines.
- Stage Hover a file and click + to stage it, or stage a whole group from its header. Right-click a file for more, such as discarding its changes. IZ Code asks before it discards anything.
- Write the message Type it in the message box, or click Generate Commit Message (the sparkle icon in the box) to let an agent write it.
- Commit Click Commit. The arrow next to it lists the other commit actions.
Generate Commit Message#
The agent reads the diff of your staged changes, or of every change when nothing is staged, and writes a message into the box. It runs a read-only session in your repository and does not change any files. While it works, the button turns into a stop button.
You need an agent that is installed and signed in. Otherwise IZ Code shows No AI agent is available to write the commit message. Sign in to an agent in the Chat panel first. See Choose an agent.
Clone or start a repository#
When no folder is open, the Source Control view offers Clone Repository. Paste the repository URL, choose the folder to clone into, and IZ Code asks whether to open the cloned repository. You can also clone from the welcome page.
Repositories inside your workspace#
IZ Code finds Git repositories nested at any depth in your workspace, such as a package in a monorepo or a vendored checkout, and opens each one in Source Control. Each one also gets Git colours and badges in the Explorer. If a repository sits in a parent folder of the one you opened, IZ Code asks whether to open it.
The Explorer colours files by their Git state (modified, untracked, ignored and so on), and its Timeline pane shows the Git history of the active file.
Remote workspaces#
Source Control works the same way in SSH, Remote Peer and cloud workspaces. Git runs on the host that holds the repository, so commits, diffs and discards act on the files there, using that host's Git configuration and credentials.
Agents and Git#
Agents in IZ Code have Git tools they can use inside a repository. Turn them off in Settings ▸ Git & PRs ▸ Let agents use Git. With it off, every Git tool call is refused. This does not affect commands an agent runs in its own shell. By default, agents ask before they commit or push; see Permissions and tools.
Settings#
| Setting | Values | Default |
|---|---|---|
izcode.git.nestedRepositoryScanDepth | Number of folder levels to search for nested repositories; 0 turns the deep scan off | 8 |
izcode.git.enableChatTools (Let agents use Git) | true, false | true |
git.enabled | true, false | true |
git.autoRepositoryDetection | VS Code values | true |
git.repositoryScanIgnoredFolders | List of folder names | ["node_modules"] |
Other git.* settings from VS Code apply too, because the same Git extension reads them.