Git
Git has two tabs. Project is a small Git desktop app for your code: see which agent works in which folder and on which branch, commit your changes, switch branches, sync with the server and handle pull requests. Neova shows the history of the Neova repository that versions your tasks, wiki pages, agent notes, goals and skills. It only reads.
It works with code on GitHub, GitLab and Forgejo (such as Codeberg). Committing, branches and sync work with any Git server.
Open it from Sidebar › Tools › Git. It opens in the main pane. To keep it in view while you work on another page, right-click its tab and choose Move to bottom panel.
Header and tabs
Section titled “Header and tabs”The subtitle sums up the open tab. Refresh reads the repository again. The page also refreshes each time you open it.
On the Project tab, when the checked-out branch has a pull request, the header shows Open PR #n with the pull request’s state. See Pull requests.
| Tab | Shows |
|---|---|
| Project | Your code repository, as a Git desktop. The subtitle shows the number of branches, commits and unpushed commits. |
| Neova | The Neova repository in .neova/, on the branch neova. The subtitle shows the number of commits and whether the history is synced or on this machine only. |
Set up Git
Section titled “Set up Git”When something is missing for everyday Git, Set up Git sits at the top of the Project tab. It lists only what is missing, with one button per row, and goes away once everything is done:
| Row | Button | What it does |
|---|---|---|
| Git repository | Start one | Makes the project folder a Git repository, on main. |
| Your name and email | Add | Sets the name and email Git puts on your commits, for every repository on this computer. |
| Connected to server | Connect | Points the project at its repository online. Paste the address from the Code or Clone button on GitHub, GitLab or Forgejo. |
| Access to server | Add token | Gives Neova a token for this repository. See How to give Neova access. Not now hides this row. |
How to give Neova access to your repository
Section titled “How to give Neova access to your repository”The repository you work in has its own connection, separate from the Issues connections in Settings › Apps. One token lets Neova pull, push and handle pull requests for this repository only.
- Under Set up Git, click Add token.
- If Neova can’t tell which service hosts your code, pick GitHub, GitLab or Forgejo.
- Click Open GitHub (or GitLab, Forgejo). GitHub and GitLab open with the right settings filled in:
- GitHub: pick this repository and keep Contents and Pull requests on Read and write.
- GitLab: keep the scopes api and write_repository.
- Forgejo: under Generate new token, give repository Read and write.
- Copy the token, paste it into Neova and click Check token. Neova asks the service what the token may do, and says so in plain words when it can’t push or can’t see the repository.
- Click Done.
The token is kept in your computer’s keychain, never in the project. Without a token, Git uses your computer’s own sign-in, such as an SSH key. With a token, Neova uses it for its own pulls and pushes, also when your repository’s address is an SSH one.
Working in
Section titled “Working in”The first line of the Project tab shows the folder you work in, with a short summary of the other places, such as 2 goal worktrees · 1 agent elsewhere · 1 with unpushed work. Click the folder to switch. The picker lists:
- The Project folder: your project itself.
- Each Goal worktree: a copy of the project for one goal, on its own branch, so agents on different goals don’t get in each other’s way. Worktrees appear when Work on goals in separate folders is on in Settings › Version history. Each shows its branch, how many commits it is behind (↓) or ahead (↑) of the server, how many files changed, and the agents working in it.
- Other folders, folded: a folder that matches no goal (Open in Finder) and a folder that is gone (Clean up). When something needs cleaning up, the folder button has a dot and the summary says 1 to clean up; click it to open the picker there.
The toolbar and the views below follow the folder you pick. In a worktree, the ⋯ next to the folder has Open in Finder, Open the goal, Update from main, Merge into main, Push to the server and Close worktree….
Toolbar
Section titled “Toolbar”| Item | What it does |
|---|---|
| Checked out branch ▾ | Switch to another branch, or New branch…, which starts from the checked-out branch and takes your changes along. Branches are grouped, newest first: On this Mac, and Only on the server (pick one to bring it in). A branch checked out in another folder sits in a dashed frame that names the folder; picking it opens that folder. |
| Sync ↓ ↑ | Pulls what the server has, then pushes your commits. Up to date when there is nothing to do; Push branch when the branch isn’t on the server yet. |
| Checked time ago | When Neova last asked the server for new commits. Click it to check now. |
| History · Changes · Pull requests | The three views; Git opens on History. GitLab calls them Merge requests. |
Neova asks the server for new commits when you open Git, and every 5 minutes while Neova is open. It never changes your files when it checks. The status bar’s Git item shows ↓ and a number when commits are waiting.
When agents work in the folder, switching branch or throwing away changes first names them and shows their avatars. Switch anyway (or Discard anyway) goes ahead; the safer route is to give the work a goal with its own folder.
Changes
Section titled “Changes”Changes works like Forgejo’s Files changed:
- On the left, the changed files grouped by folder, each with a tick box and a letter: M changed, A new, D deleted, R renamed, U conflict. Click a file to jump to its changes.
- On the right, every file’s changes one after another, with old and new line numbers. Each file has a header with the number of lines changed, a small green and red bar and its state. Click the header to fold it. Collapse all folds every file.
To commit:
- Untick the files you want to leave out. All files are ticked to start with.
- Write what you changed.
- Click Commit. The ▾ menu has Commit and push, and Amend last commit, which adds the files to your last commit with this message.
Right-click a file and choose Discard changes… to throw its changes away. This can’t be undone.
Coming from the server
Section titled “Coming from the server”When the server has commits you don’t have yet, History lists them on top as Coming from GitHub, with who made them and when, followed by You are here: the branch and folder you’re in. Click Pull to bring them in, or Sync. Changes and Pull requests show one line instead, with See in History.
When a pull hits a conflict, it stops with Pull stopped: 2 files conflict and Open Terminal. Sort out the conflict there, or ask an agent. Neova doesn’t resolve conflicts itself.
History
Section titled “History”On the Project tab, History shows your work as lanes, newest at the top. The first lane is the project folder. Next to it, each goal worktree has its own narrow, tinted lane, divided by dotted lines. Each worktree’s line curves into the project folder’s line at the commit where its work started.
- Each commit’s text sits right next to its dot. A filled dot that says Not pushed isn’t on the server yet. A hollow dot at the top is a commit on the server that isn’t here yet, and a dashed ring is work that isn’t committed.
- A narrow lane shows its agent, a tick when it’s clean or the number of files not committed, and a mark when something needs care. Its name is written upright.
- Hover a lane to open it. It shows the folder and where it is on disk (click to open it in Finder), the branch and its pull request, who works there, Clean or how many files aren’t committed, and how far it is ahead of and behind
main. While it’s open, the other lanes’ commits fade. - An open lane also says whether its work merges cleanly into
main, has conflicts with main, or changes the same files as another worktree. Neova checks this with a trial merge that changes nothing. One button offers the next step: Update from main, Review changes, Push, Merge into main or, when nothing is left, Close folder. - Click a commit to see its details on the right.
The Neova tab keeps the classic layout: branches and working tree on the left, the commit graph in the middle and commit details on the right. In a narrow pane, the commit details replace the graph. Click All commits to go back.
Branches
Section titled “Branches”On the Neova tab, Branches lists the local branches. The checked-out branch is bold and has a HEAD badge. ↑ and ↓ show how many commits the branch is ahead of or behind its remote.
Click a branch to highlight its line in the graph. The other lines fade and the graph scrolls to the branch’s latest commit. Click the branch again to clear the highlight.
A branch with a pull request shows a chip with its number. See Pull requests.
Working tree
Section titled “Working tree”Working tree lists files that are not committed, under Staged, Changed and Untracked. Each file has a letter: A added, M modified, D deleted, R renamed, ? untracked. When there is nothing to commit, it says Clean — nothing to commit.
Commit graph
Section titled “Commit graph”Each row is one commit, with a coloured line per branch. A row shows:
- Labels for branches, remote branches and tags that point at the commit. The checked-out branch label is filled.
- The commit subject.
- An unpushed badge and a hollow dot for commits that are not on the remote.
- The short hash, the author and how long ago it was committed.
The graph shows 50 commits. Click Load more at the bottom for the next 50.
Commit details
Section titled “Commit details”Click a commit to see its details:
| Field | Shows |
|---|---|
| Commit | The short hash. When the repository has a remote, click it to open the commit in your browser. |
| Author | Name and email. |
| Date | When it was committed. |
| Parent | The parent commit or commits. |
| Message | The full commit message. |
| Files changed | Each file with lines added and removed. Binary files show bin. |
How to find a commit on a branch
Section titled “How to find a commit on a branch”- Open the Project tab.
- Under Branches, click the branch.
- Click a commit on the highlighted line to see its details.
Neova Git
Section titled “Neova Git”Neova Git keeps a version history of your project data in its own repository, inside .neova/. It does not touch your code repository: no new files, no commits, no branch changes. Neova hides .neova from your code repository with a local entry in .git/info/exclude.
Once it is set up, Neova commits changes by itself. A few seconds after files under .neova/ stop changing, Neova records them as one commit. The subject names what changed, for example neova: 3 tasks, 1 wiki page. Runtime files such as logs and workspace state are not committed.
When Neova Git is not set up, the Neova tab shows Neova Git is not set up for this project with a Set up Neova Git button. It shows a warning instead when:
- Project files under
.neova/are still tracked by your code repository. The tab shows how many and the commands to run in the project folder to untrack them. Nothing is deleted from disk. Neova notices when it’s done and offers set-up. .neovabelongs to another git repository. Set-up stays unavailable until you move it out by hand.
How to set up Neova Git
Section titled “How to set up Neova Git”- Open the Neova tab.
- Click Set up Neova Git.
- Read What happens. It lists each step and the command it runs:
- Create the repository:
git init -b neova .neova - Write the Neova-managed ignore rules:
.neova/.gitignore - Record the first version of your data:
git commit - Hide .neova from your code repository:
.git/info/exclude
- Create the repository:
- Click Set up. Each step shows its progress.
- When Neova Git is set up appears, click Done.
If set-up fails, Neova undoes the parts it already created and shows what went wrong. Click Try again when it is offered.
You can also start set-up from Settings › Version history.
Neova Git settings
Section titled “Neova Git settings”Settings › Version history has these cards for Neova Git:
| Card | What it shows |
|---|---|
| Neova Git repository | Whether Neova Git is set up, and Open in Tools › Git. |
| Back up to GitHub | Whether the history is pushed to a remote (Backing up to … or Not backed up), and This computer’s name, which is shown next to each change. Click Change to rename it. |
| What gets backed up | Checkboxes for tasks/, wiki/, agents/ (incl. notebooks), goals/ · skills/ and snippets/, and the folders that are never included. |
How to bring a goal’s work into main
Section titled “How to bring a goal’s work into main”In Where work happens, open the goal worktree’s ⋯ menu:
- If main has moved on, choose Update from main. This brings main’s new commits into the goal branch. Main is not touched.
- Choose Merge into main. This moves your local main forward by the goal’s commits. Nothing is sent to the server.
- To back up or share the branch, choose Push to the server.
Open and close work on a goal from Goals.
Pull requests
Section titled “Pull requests”When your code is on GitHub, GitLab or a Forgejo server such as Codeberg, the Pull requests view lists every open pull request (merge request on GitLab), the checked-out branch’s first, and History shows each branch’s chip. Click a chip, or Open PR #n in the header, to open it in your browser.
With a token (see Set up Git) you can also:
- Create pull request: for the checked-out branch, once it is on the server. Give it a title and a description; it goes into
main. - Merge: on an open pull request whose checks aren’t failing or running. Its changes go into
mainon the server; pull afterwards to have them here.
The chip shows the number and an icon for the state:
| State | Icon |
|---|---|
| Open | Green pull request icon |
| Draft | Grey draft icon |
| Merged | Merge icon in your accent colour |
| Closed | Grey closed icon |
A dot after the number shows the checks: green when they pass, yellow while they run, red when one fails. Hover over the chip to see the state, the checks and the title. When a branch has more than one pull request, the chip shows the newest open one, otherwise the most recently updated one.
Neova looks up pull requests when you open the page, when you click Refresh, and once a minute while the page is on screen. When the lookup fails, for example offline, the chips stay as they were.
Public repositories work without signing in. For a private repository, Neova uses the repository’s own token, or else the token of a GitHub or Forgejo connection in Settings › Apps. Without one, there are no chips: the header shows Pull requests, which opens the host’s list of pull requests for the checked-out branch. An expired token shows the same.
Related
Section titled “Related”- Settings › Version history turns goal worktrees on and sets up Neova Git.
- Settings › Apps: GitHub and Forgejo Issues connections. Their tokens show pull requests here when the repository has no token of its own.
- Goals: open and close work on a goal.
- MCP tools:
enter_goalandrequest_mergelet agents work in a goal’s folder and merge it.