Git
Git overview
Where git shows up across Pip, how it reads your repositories without changing them, and what each word on a server row means.
Where git shows up#
A server or agent session running from inside a repository carries its git state with it, and the same few words turn up in several places. Each has a guide of its own:
- Server rows
- The branch and where it stands, on each row's second line:
Vite · main ↑2 · up 12m. The list's search matches branches too. What each word means. - Tray menu
- Right-click the tray icon and open Servers: each server's submenu starts with one line about its repository, such as
main · ↑2 ↓5ormain · rebase in progress. - Stats tab
- A server's screen lists its Branch, a Git line while a merge, rebase or other operation is stopped (
Rebase 3/7 · 2 conflicted files), and Last commit when the reflog has a time for it. The detail screen. - Git tab
- The whole picture for one server: HEAD, the remote and Fetch, the repository, the working copy, and any operation left open. Read about the Git tab.
- Repositories
- Every repository behind a running server, an agent session or a Storage folder, in one list. Read about Repositories.
- Quick actions
- Fetch, review branches or open a pull request without leaving the keyboard — see git from the keyboard.
- Agents
- A Claude Code or Codex session working in a repository shows its branch in the same words, and its detail adds who you are committing as and the repository's worktrees. Read the Agents guide.
- Notifications
- A merge or rebase left unfinished, an upstream deleted, a branch falling further behind after a fetch — told as native notifications. Read about git notifications.
Settings → Git holds four things: how long a branch goes untouched before the Branches review calls it stale, 30 days unless you change it; a fetch every 15 minutes for repositories with a running server, off until you turn it on; the three notification switches, all on to begin with; and the muted repositories, where you unmute one.
How it reads the repo#
Pip takes the folder a process runs in, walks up to the nearest .git, and reads git's own files directly — HEAD, the refs, the config, the index, the reflog and the commit-graph. Everything it shows continuously comes from those reads: server rows, the tray menu, the Git tab's cards, Repositories and notifications. They need no git installed, and they write nothing.
- Fetch
git fetch origin, when you press Fetch or F, pick it in Quick actions, or turn on the 15-minute auto-fetch. Like any fetch, it downloads new objects, moves origin's remote-tracking branches andFETCH_HEAD, and adds any new tags that point into what it brought down. Fetch and sync.- Check with git
- One
git statusper click, run so that it writes nothing — not even the index refresh a plaingit statusmakes. - History
- One
git logfor the last 40 commits when the screen opens, and agit showfor a short excerpt of the busiest file in the commit you are looking at. Commit history.
Besides those three, git --version tells Pip whether git is there. It never pulls, pushes, prunes, commits, checks out or changes branches, and it never prompts for credentials: a fetch uses the credential helper or ssh agent you already have, and fails in words rather than asking. Fetch is the only one that reaches the network, apart from one edge case in partial clones. Open pull request and Open on the web hand a URL to your browser.
What you will see#
A server row's second line holds one git segment, after the runtime. What it can say:
- A branch name
- The usual case —
main,feat/webhooks, whatever is checked out. A branch with nothing after it is in sync with its upstream, or has nothing to compare against: no upstream, or no commits yet. - A short hash
- Something like
9f8e7d6cmeans a detached HEAD — a tag or a specific commit checked out. - ↑2 ↓5
- Commits ahead of and behind the upstream, counted from git's commit-graph. Only the side that differs is shown, so
↑2alone is two commits not yet pushed. The count is against whatever your last fetch brought down. - not synced
- The branch and its upstream point at different commits, but Pip could not count how far apart — most often because git's commit-graph does not cover the newest commits yet. Fetch and sync explains.
- upstream gone
- The branch tracks a remote branch that is no longer here, usually because it was deleted on the remote and a fetch with pruning removed your copy. Pip never prunes, and cannot tell whether the branch was merged.
- Rebase 3/7
- A merge, rebase, cherry-pick, revert or bisect is stopped in this working tree. It takes the place of the branch and the arrows, and tints the row:
Merge,Rebase 3/7,Cherry-pick,RevertorBisecting. Merges and rebases. - Nothing at all
- The server is not running from inside a repository. It still gets detected on its runtime or its port; there is simply no branch to show. Container rows name Docker and their compose project or image instead, and a repository whose refs Pip cannot read shows nothing either — see reftable.
When you switch branches#
There is nothing to refresh. Pip re-reads the repository on every scan — every two seconds while its window is on screen, every five for WSL rows — and a git switch moves the file it watches, so the row changes within a scan or two. A commit, a fetch from your terminal and each rebase step show up the same way. You do not need to restart the server, or Pip.
While the window is hidden, the scan slows to every 30 seconds, and the tray menu shows what the last one read; bringing the window back scans at once. One change takes longer: a folder that becomes a repository while its server is running — a fresh git init — can take up to a minute to show.
When git is not installed#
Everything above is read from files, so rows, the tray, the Git tab's cards, Repositories and notifications work the same with no git at all. Only Fetch, Check with git and History need it. Without git, Fetch and History say so where their buttons would be, and Check with git simply has no button:
- “Install git to fetch from here.” on the Git tab's Remote card. Auto-fetch skips its rounds until git is back.
- “Install git to see the history here.” on the HEAD card.
- No Check with git button, and Repositories says “git isn't on PATH, so Pip can't check working trees with it.”
On macOS, the /usr/bin/git that comes without the Xcode Command Line Tools only opens Apple's installer, so Pip counts it as missing and says “Install the Xcode Command Line Tools to fetch from here.” — and the same for History. A git that is installed but does not answer git --version gets “git is installed but did not answer: …” with its reason. Pip looks on the PATH a new terminal would get, and keeps looking while git is missing, so a git you install is found without a restart.
WSL and containers#
WSL rows get a branch and arrows too, read over \\wsl.localhost each time Pip polls the distro. A Windows process serving from a WSL share counts as WSL for everything Pip reads on demand. Container rows name Docker and their compose project or image instead of a branch, but their Git tab reads the compose folder.
Everything Pip does on demand is for servers running directly on this computer. A WSL or container row's Git tab shows what the scan read — HEAD, the remote, where the branch stands — and says where to do the rest, in sentences such as “Fetch from inside WSL.” and “History is read inside the container.” Check with git, the Branches review, auto-fetch and notifications leave these rows out, and Repositories lists them as “In WSL: listed from what the scan saw, not read from here.”
Git from the keyboard#
Press Q from any tool for Quick actions, then type a server's name, port or branch. A server's main port carries its git verbs, each one offered only where the Git tab would offer the same thing; Tab changes the action and ↵ runs it. A verb word typed first or last picks the action straight away — fetch storefront, storefront pr — and these English words work whatever language Pip is in:
- Show Git tab
git- Review branches
branches,review- Open pull request
pr,pull,mr— Open merge request on GitLab- Fetch
fetch- Open folder
folder,reveal- Open on the web
remote,web
Outside the palette, F fetches from a server's Git tab when it shows Fetch, once however long you hold it. R opens Repositories from the servers list, / searches — branches included — and ← goes back one screen. Esc unwinds one layer per press: it disarms a kill, then closes Repositories, the Branches review, History's commit card, History itself and the server's screen, and last clears the search. A search box you are typing in clears itself first.
Did this page not answer it? Tell us what you were looking for — that is how Pip's documentation gets written.