Resolve a git merge conflict on your iPhone
A pull stopped halfway with CONFLICT in three files, and the repository is now in a state nobody can commit from. Leaving it like that until tomorrow blocks everything else on that branch.
Be honest about the screen
A conflict across twenty files of tangled logic deserves a big screen and your editor's
merge tool. If that is what you are looking at, the best move from the phone is often
abort: the repository goes back to where it was before the pull or rebase,
and the real merge waits for the desk. For a repository on a server, SSH and your usual
git mergetool do the job.
Most conflicts are smaller than that: a version number, an import list, two edits to the same
line where one side is clearly right. Those can be settled on a phone in a minute — if the phone
shows them as sides, not as raw <<<<<<< markers.
How it looks in ShiftStage
The repository's status screen shows the operation in progress — merge, rebase, cherry-pick or revert — and lists the conflicting files. Open one, and the agent on your Mac reads the base, ours and theirs from the index; the phone shows each conflict as blocks.
- Take one side for the whole file, or one side per block.
- Take both sides, one after the other.
- Edit by hand when neither side is right as it is.
- Binary files take one side whole — there is nothing to edit blind.
- Modified on one side, deleted on the other: keep our version or delete the file.
Saving a resolution writes the file on the Mac and stages it in the same step. A file that is resolved but not staged is the classic reason an operation will not continue, and the app does not leave you there. The screen keeps count of the conflicts still open.
Finishing the operation
Once the files are resolved, the same three exits git gives you are on the status screen:
- Continue — refused, with the files named, while conflicts remain.
- Skip — for rebase, cherry-pick and revert; a merge has nothing to skip.
- Abort — always available while an operation is in progress, and asks before it throws your resolution away.
A conflict from a pull is treated as a state, not an error: the pull already changed the working tree, so the app shows where the repository is rather than pretending nothing happened. Files over the transfer limit cannot be resolved from the phone; the app says so, and abort still works.
Avoiding the next one
Most conflicts on a phone come from pulling into a branch with local work. Pulling before you start, and switching branches with the stash option rather than carrying edits along, keeps them rare — branches and stash from your iPhone covers both. After the merge, commit and push as usual.
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.