ShiftStage

Commit and push from your iPhone

The work is done and sitting in a working tree on your Mac. Getting it into a commit and onto the remote should not wait until you are back at the desk.

First, the other ways

If the repository you want to commit to lives on the phone, a git client for iOS such as Working Copy is the right tool: it keeps its own clone on the device, commits there and pushes from there. If you only need to merge something that is already pushed, the GitHub or GitLab website does that from Safari. And if you are comfortable in a shell, SSH into the Mac and run git as you always do.

The case this guide is about is different: the changes exist only on your Mac — written by you an hour ago, or by an AI agent while you were out — and nothing has been pushed yet. A clone on the phone does not see them. They have to be committed where they are.

What you can do from the phone

  • See the status of every repository in the folders the Mac shares: staged, changed, untracked and conflicting files, the branch, how far it is ahead of or behind its upstream.
  • Read the diff with changes marked inside the line, staged and unstaged parts kept apart. A new untracked file shows as added lines, not as an empty diff.
  • Stage files or single lines. Pick several files at once, or open a diff and stage only the lines that belong in this commit; the rest stays for the next one.
  • Discard what should not land. The app asks first and names the file or the number of files, because discarded work is in no commit, no stash and no reflog.
  • Commit. The message is kept as a draft until the commit succeeds — a phone call or a switch to another app does not lose it.
  • Fetch, pull and push with progress, so a slow remote is not thirty seconds of silence.

Your hooks and your credentials, untouched

ShiftStage runs the real git on the Mac, not a library that imitates it. Your pre-commit hook runs, and your ~/.gitconfig with its conditional includes applies. If the hook rejects the commit, the app says so with git's exit code, and the same command in the terminal shows the hook's reason.

Pushing uses whatever the Mac already uses: keys in its SSH agent, the credential helper, the keychain. No token or password goes to the phone. If git would need to ask for a password or confirm a host key, the app tells you that action is needed on the Mac instead of sending a password prompt across the network. A rejected push comes back with its reason named — not a fast-forward, a protected branch, or a declined hook.

Before the commit button

The app checks the obvious before it sends anything: an empty message, nothing staged, unresolved conflicts, a rebase or merge still in progress. You see the reason right away, in plain words, instead of a parsed error from git a second later.

If an agent did the work, read the diff first — reviewing a git diff on your iPhone covers that step. If the push is meant to become a pull request, open it from the same screen.

Set it up once

  1. Install the agent on the Mac. A signed, notarised app from our open Homebrew tap. It shares only the folders you name.
    brew install --cask shiftstage/shiftstage/shiftstage-agent
  2. Install the app on the iPhone from the App Store.
  3. Pair them. Scan the code on the Mac's screen and confirm the same symbols on both devices. No account. The first pairing needs both on the same network.

That is the whole setup: no VPN, no port forwarding, no SSH keys. On the same Wi-Fi the phone talks to the Mac directly; away from home the connection goes peer to peer, or through a relay that forwards only end-to-end encrypted bytes.

Then share the folder that holds your projects. Repositories inside it are found on their own, up to four levels deep, and each one opens to its status.

Get it

The Mac agent: download page — one Homebrew command or a notarised disk image. The iPhone app: App Store. Free forever for one Mac on your own network, no account; $7.99 a month or $69.99 a year to reach it from anywhere.

More guides: all guides.