# Git Integration

Source: https://athas.dev/docs/git-integration

Review file changes, stage and commit work, and navigate Git branches, history, and worktrees.

Athas includes powerful Git integration.

## Features

- **Source Control Panel**: View changed files, stage, and commit
- **Branch Management**: Create, switch, and merge branches
- **Worktree Management**: Open separate checkouts as current-window or new-window workspaces
- **Commit History**: Browse commit log with diffs
- **Inline Blame**: See who changed each line
- **Diff Viewer**: Side-by-side and inline diff views
- **Stash Management**: Save and restore work in progress

## Getting Started

1. Open a folder that is a Git repository
2. Click the Git icon in the sidebar
3. View changed files, stage changes, and commit

## Source Control Panel

- **Staged Changes**: Files ready to commit
- **Changes**: Modified files not yet staged
- **Untracked**: New files not tracked by Git

Click the `+` icon to stage files, or use the checkmark to commit.

GitHub account features are separate from local Git operations. See
[GitHub Integration](https://athas.dev/docs/github-integration) for dashboard sync, account access, and token
storage details.

Use [Worktrees](https://athas.dev/docs/git-worktrees) when you want multiple branches checked out at the same time
with separate workspace, terminal, and Git status state.

On Windows, Git repositories inside WSL workspaces are supported through Athas' WSL path bridge.
See [WSL](https://athas.dev/docs/wsl).

## Keyboard Shortcuts

- `Cmd/Ctrl+Shift+G`: Open Source Control panel
- `Cmd/Ctrl+Enter`: Commit staged changes

## Review before committing

Save edited files before inspecting status. Stage only the changes you intend to include, review the staged [diff](https://athas.dev/docs/git-diff), and then commit. Local commits and remote pushes are separate operations. Check the active project and branch before publishing work.
