Commits

Git functionality in Xedant Code is accessible through two places: the Git Sidebar in every chat view for day-to-day operations (staging, committing, pushing, pulling, stash), and the Commits page for browsing and inspecting your full commit history.

Git sidebar in Xedant Code showing repository tabs, changed files, and quick commit

The Commits page shows commits from both the project repository and the skills repository, with the ability to search, filter by branch, and view file-level diffs. Commits can also be linked to chats — when Claude Code creates a commit during a conversation, it’s automatically associated with that chat.


Git Sidebar

The Git sidebar is the primary way to interact with Git during a chat session. It appears in the right panel of every chat view (desktop) or as a bottom drawer (mobile), and provides real-time git status, quick commit, and file management for both the Project and Skills repositories.

Project and Skills Tabs

The sidebar has two tabs — project and skills — each showing the git state of its respective repository. Tab badges display the count of changed files. The skills tab only appears when skills Git is enabled for the project.

Status and Quick Commit

At the top of each tab, the sidebar shows the current branch name with ahead/behind counts. Below that, a quick commit input is pre-filled with the chat title as the commit message. When files are changed, the commit button becomes active — click it to stage all changes and commit in one step.

Changed Files

The files list shows all modified, added, deleted, renamed, and untracked files with color-coded status indicators. Each file can be individually unstaged or undone. An Undo All button reverts every change. The list also provides pull, stash, unstash, and stash/pull/rebase operations for synchronizing with the remote.

Commits Menu

The Git Commits dropdown button appears in the file list header. It shows a badge with the number of commits linked to the current chat and a dropdown with recent commits (message + relative time). Click a commit to open its detail page, or click “All Commits” at the bottom to navigate to the full Commits page.

Commits dropdown menu showing recent commits linked to current chat

Real-Time Updates

The sidebar updates automatically via SignalR — when Claude Code stages, commits, pushes, or modifies files, the status, file list, and commit count refresh in real time without manual intervention. A refresh button is also available to manually reload the git state.


Commits Overview

The main Commits page shows repository cards — one for each repository (Project and Skills). Each card displays:

Commits overview page showing repository cards with commit counts
  • Repository name — “Project” or “Skills”
  • Total commits — the total number of commits in the repository
  • Linked commits — commits associated with chats (created during AI-assisted work)
  • Unlinked commits — commits not associated with any chat

Click a repository card to open its commit list.


Commit List

The commit list for a repository shows each commit with:

  • Commit message — the title of the commit
  • Relative time — how long ago the commit was made (e.g., “2 hours ago”)
  • Branch name — which branch the commit belongs to
  • Short hash — the first 7 characters of the commit hash
  • Chat link icon — if the commit is linked to a chat, a clickable icon appears that opens the associated chat

The commit list supports:

  • Search — type in the search box to filter commits by message, hash, or file path. Results update live as you type (300ms debounce).
  • Branch filter — click a branch badge to filter commits to that branch. The active filter is shown as a badge with an × button to clear it.
  • Pagination — commits are displayed 10 per page with navigation controls.

Commit Detail View

Click a commit in the list to open its detail page. This shows:

Commit detail view showing full commit message, changed files, and diff viewer
  • Full commit message
  • Date and time — full formatted date
  • Chat link — if the commit is associated with a chat, a link to open it
  • Changed files — list of files modified in the commit, each with a status indicator:
    • Added (green)
    • Deleted (red)
    • Modified (yellow)
    • Renamed (blue)

Click any changed file to expand its diff. The diff viewer shows additions and removals in a side-by-side or line-by-line format.


Chat-Commit Linking

When Claude Code creates a commit during a conversation (for example, when you ask the AI to fix a bug and it commits the changes), the commit is automatically linked to that chat. This creates a traceable connection between your conversations and the code changes they produced.

Chat icon in commit list linking to the associated chat conversation
Commit linked to chat showing the connection between conversation and code changes

Linked commits show a chat icon in the commit list and detail view. Clicking the icon opens the associated chat so you can review the conversation that led to the commit.

The “Refresh” button on the repository’s commit list re-imports commits from Git and updates chat-linking associations. This is useful if commits were made outside of Xedant Code and need to be synced.


Git Commits Menu

The Commits Menu in the Git Sidebar provides quick access to commits linked to the current chat directly from the chat view, without navigating to the Commits page.


Navigation

The Commits section uses breadcrumb navigation:

  • Commits → repository overview (shows all repos)
  • Commits → Project → commit list for the project repo
  • Commits → Project → abc1234 → detail view for a specific commit (with a copy button on the hash)