Switch branches and stash from your iPhone
You want the other branch, and the working tree is not clean. On a desk that is a reflex. From a phone it should be a choice, made with the cost in front of you.
When something else is better
A git client on the phone such as Working Copy handles branches and stashes well — in its
own clone on the device. For a repository on a Linux server, SSH is the natural route. If you
already live in a terminal, the ShiftStage terminal is a real shell on the Mac and
git switch works there exactly as at the desk.
This guide is for the repository on your Mac, handled with buttons instead of typed commands — where a mistyped branch name or a forgotten stash costs more than on a keyboard.
Switching with uncommitted changes
When the tree is dirty, the app does not just refuse. It asks what to do with the changes, and tells you how many there are:
- Stash and switch — changes go to the stash, untracked files included, and come back from there whenever you want them.
- Take them along — what
git switchdoes on its own: the edits move to the other branch if it does not touch the same lines. The common case of starting work on the wrong branch. - Discard — gone for good, and the app asks a second time before it does it.
Each choice runs on the Mac as one operation, so you never end up with the changes stashed and the branch unchanged because a connection dropped in between.
Picking a remote branch creates a local branch that tracks it, as you would mean it; if that local branch already exists, the app switches to it. New branches start from the current state or from any commit you name.
Stashes, both ways
Stash from the repository's status screen, with a description, while you are looking at the list of changes — that is where you decide what leaves the table. The stash list then offers three actions per entry: apply keeps the entry (useful when the same change is needed on a second branch), pop applies and removes it, and drop deletes it after asking, by name. The list is re-read after every action, so the entry you tap is the one that changes.
Pull, rebase and history
- Pull follows your repository's
pull.rebasesetting; Pull with rebase sits next to it for the times you want it explicitly. - Rebase the current branch onto another one. Interactive rebase is not offered — it needs an editor full of commits, which is desk work.
- Cherry-pick, revert and reset from a commit in the history, with soft, mixed and hard reset kept apart and the hard one named as losing uncommitted work.
- The history itself as a list or a branch graph, filtered by author, file or message.
If a pull or a rebase stops on a conflict, the repository shows the operation in progress with continue, skip and abort — see resolving a merge conflict on your iPhone. When you are ready to land the work, commit and push from the same screen.
Set it up once
- 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 - Install the app on the iPhone from the App Store.
- 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.
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.