Why open a repository over SSH
A lot of code isn’t on the laptop. It’s on a dev box, a cloud VM with more memory, a Raspberry Pi, or the server where the app runs. git works fine there in the terminal, but most git clients only open folders on your own computer.
The usual workarounds:
- X11 forwarding of a git GUI that runs on the server. The server needs a desktop toolkit, and it’s slow.
- Mounting the folder with sshfs and opening it in a local git client. Each git command reads thousands of files over the network.
- The git panel of VS Code Remote-SSH. Fine for a commit, not for the history or a rebase.
- A terminal UI like lazygit, installed on the server.
How it works
gitto runs git on the server. It sends the same git commands it would run on a local repository over SSH and reads the output. Your computer doesn’t need a copy of the repository, and the server only needs git and a shell.
- All commands share one SSH connection (
ControlMaster), so each command is one round trip. On Windows each command opens its own connection, because the SSH client of Windows can’t share one. - gitto uses your SSH config, keys and agent. If a key needs a passphrase or the host asks for a password, gitto asks you.
- With Forward SSH agent on, you can fetch, pull and push from the server with the keys on your computer.
- gitto checks the repository for changes, so edits made on the server, in your editor or by a build, show up after a few seconds.
The rest works like on a local repository: commit graph, staging lines, diffs, interactive rebase, conflicts, stashes, blame and pull request reviews.
Open a repository
Use File → Open over SSH… (⌥⌘O on macOS, Ctrl+Alt+Shift+O on Windows and Linux). Pick a host from your
~/.ssh/config or type user@host. Then browse the folders on that machine, or let gitto find the repositories in your
home folder.
You can also open one from the command line:
gitto devbox:projects/app
gitto ssh://me@devbox:2222/srv/app
Clone and New Repository also work on the server.
The SSH setup guide explains hosts, ports, agent forwarding and editors step by step.
Terminal and editor on the server
Open in Terminal starts an SSH session in the repository folder, in the terminal app set in the settings.
Open in Editor opens the folder in VS Code with Remote-SSH. You can set another command instead, for example for Zed:
zed ssh://{host}{path}
Commands and Claude Code on the server
Custom commands run where the repository is. On a repository over SSH, the script runs on the server, so a cleanup of merged branches deletes the branches on the server.
Open in Claude Code also works over SSH. It starts a session on the branch or pull request you have open, in its own worktree on the server. Read more about gitto and Claude Code.
Who uses it
- People who work on a dev box or a cloud VM because the laptop is too small for the project.
- People who keep projects on a home server or a Raspberry Pi.
- People who fix things on a server and want to see what changed before they commit.
- People who use Linux on the desktop and on their servers and want one git client for both.
Questions
Does gitto copy my repository to my computer?
No. git runs on the server and gitto shows its output. The files stay on the server.
What do I need to install on the server?
Nothing. The server needs git and a POSIX shell. Almost all Linux and macOS machines have both.
Does it work with jump hosts, custom ports and my SSH keys?
gitto uses the ssh command on your computer with your ~/.ssh/config, your keys and your agent. If it works with ssh in your terminal, it works in gitto, ProxyJump included.
Can I push and pull from the server with my local keys?
Yes. Turn on Forward SSH agent for the host. git on the server can then use the keys on your computer to fetch, pull and push.
Is it slow on a far away server?
All git commands go through one shared SSH connection, so each command is one round trip with no new handshake. On a normal connection it feels like a local repository. On Windows, the SSH client that comes with Windows can’t share a connection, so there each command opens its own and it’s a bit slower.
Can I use it from a Windows PC?
Yes. On Windows, gitto uses the SSH client that comes with Windows and your ~/.ssh/config.
Does it work with Windows servers?
No. The server needs a POSIX shell, like on Linux, macOS and the BSDs. Windows hosts aren’t supported.