Version control guideUpdated 2026-11-15
Git + Markdown notes on Mac, iPad, and iPhone without opening a terminal
Mergio embeds a full libgit2 Git client for device-local Markdown repositories, plus 30-day device-local snapshots when you keep folders in iCloud Drive instead.
Keeping engineering notes, architecture decisions, or a personal wiki in Git works smoothly on a desktop computer — until you want to check diffs, create a branch, or commit an edit from your iPhone or iPad.
Mergio builds libgit2 directly into the app across macOS, iPadOS, and iOS, so Git becomes part of the repository sidebar rather than a separate command-line detour.
What is included free vs. Mergio Pro
| Capability | Free version | Mergio Pro |
|---|---|---|
| Turn on Version Control for local folders | Included | Included |
| View modified files & line-by-line diffs | Included | Included |
| Stage whole files or individual lines, discard changes | Included | Included |
Commit changes (with optional default "Update notes" message) |
Included | Included |
| Browse commit history & restore earlier versions | Included | Included |
| Create/switch branches, create tags, stash & apply stashes | Included | Included |
| Clone, Fetch, Pull, Push & Sync over HTTPS or SSH | — | Included |
| 30-day device-local Version History (non-Git repos) | Included | Included |
Note that free usage covers up to 3 repositories and 500 notes and folders total; Mergio Pro (monthly, yearly, or one-time Lifetime Unlock) lifts both limits and enables remote operations.
Supported Git hosts and authentication
When configuring remote sync with Mergio Pro, you can connect repositories on GitHub, GitLab, Gitea, or Other (custom/self-hosted HTTPS or SSH servers):
- GitHub OAuth (PKCE): Sign in through GitHub’s standard browser authorization flow. Mergio never sees your GitHub password.
- Personal Access Tokens (PAT): Add tokens for GitHub, GitLab, Gitea, or any self-hosted Git host over HTTPS.
- SSH Keys inside Apple Keychain:
- Generate an Ed25519 keypair right inside Mergio (stored in standard OpenSSH format, matching
ssh-keygen -t ed25519), then copy the public key to your Git host. - Or import an existing Ed25519, RSA, or ECDSA private key file (up to 64 KB, with optional passphrase support).
- Manage Known Hosts directly inside the app before accepting unfamiliar remote host fingerprints.
- Generate an Ed25519 keypair right inside Mergio (stored in standard OpenSSH format, matching
Every token and private key stays strictly inside the current device’s system Keychain — credentials are never exported or synced through iCloud.
Choosing between Git sync and iCloud Drive
Avoid placing a
.gitrepository folder insideiCloud Drive → Mergio.
Two file sync engines writing inside .git/objects and index lockfiles simultaneously can leave .git metadata conflicted or locked. Instead, pick one model per repository:
- Use device-local folder + Git remote when you want branches, commit history, code/doc review diffs, or syncing with GitHub/GitLab/Gitea/custom Git servers.
- Use
iCloud Drive → Mergio(without.git) when you want effortless Apple-device file sync and automatic Version History snapshots retained locally on each device for up to 30 days.
Whenever iCloud creates a sync conflict on an edited note, Mergio shows an explicit resolution sheet offering Keep This Version, Use the Other Version, Keep Both, or Decide Later, and lists unresolved conflicts in Settings so nothing silently disappears.
Automating Git with Apple Shortcuts
Mergio exposes 10 Git-specific actions inside Apple Shortcuts (AppIntent) alongside note creation and search:
Get Repository Status&Get Recent CommitsCommit ChangesFetch Changes&Sync ChangesNew Branch&Switch BranchNew TagStash Changes&Apply Stash
Combine them with scheduled personal automations or share-sheet capture workflows — see the complete list in the Features & Workflows Guide.
