- Keep your Markdown in a Git repository on GitHub, GitLab, Codeberg or your own server.
- In GitSync.md, clone it into a local folder under On My iPhone (or On My iPad), not iCloud Drive.
- In iA Writer, tap Edit → Locations → Add Location… in the Organizer and pick the repository's root folder.
- Pull in GitSync.md, write in iA Writer, then commit and push.
iA Writer opens files, not repositories. Its support pages describe Locations: extra folders you add next to the default iCloud one. Any Git client that keeps its working copy in a folder visible in the Files app can feed iA Writer that way. That is the whole trick, and this guide shows it with GitSync.md.
What you need
- iA Writer for iPhone or iPad, bought from the App Store.
- A repository with your Markdown files on a Git host: GitHub, GitLab, Codeberg, Bitbucket or a self-hosted server.
- GitSync.md on an iPhone or iPad with iOS or iPadOS 17 or later. It's free to download; adding a vault needs a one-time $9.99 unlock on the US App Store, and local prices vary.
- A credential for the remote. For HTTPS, make a token (for GitHub, the GitHub token generator helps); for SSH, see the SSH guide.
Where to put the repository: local, not iCloud
iA Writer's default location is iCloud, and its cloud storage page says iCloud Drive is used automatically when enabled. It is tempting to clone into that folder. Don't. A Git working copy holds a hidden .git folder as well as your files, and iCloud syncs files on its own schedule rather than as one repository. Two systems then move the same files. See iCloud vs Git for the details.
Clone into a local folder instead: On My iPhone or On My iPad in the Files app. Git is then the only thing that moves your files between devices.
Clone with GitSync.md
- In GitSync.md, tap + (Add vault). Pick your repository from your signed-in account, or paste its clone URL under Or paste a URL.
- Choose the authentication method that matches the remote: your account, an HTTPS token, or an SSH key.
- Under Clone To, tap Choose a different location and pick a folder under On My iPhone as the parent. GitSync.md creates the repository's folder inside it.
- Tap Check & clone and wait for it to finish.
More detail, including the access checks: clone a repository on iPhone. We traced these steps through the app's source and the existing guides. We didn't record an iA Writer walkthrough on a device, so this guide has no iA Writer screenshots.
Add the folder to iA Writer
iA's support pages for iPhone and iPad give the same path: at the top of the Organizer, tap Edit → Locations → Add Location…, then pick the repository's root folder, the one that contains your Markdown files and the hidden .git folder, not a subfolder. The cloned files then show up in iA Writer's library.
Two notes from iA. Its cloud storage page says a folder can be added as a Location provided the full folder can be accessed via the iOS Files API, so a folder GitSync.md put under On My iPhone is the kind of folder this applies to. And the iPhone page says the default iCloud location can't be removed, so it will stay in the list beside yours. We haven't verified these screens on a device here, so if a label differs on your iOS version, follow iA's pages.
History: iA Writer added external library locations in version 5.2, as MacStories reported. Older Working Copy tutorials predate how iA Writer works today.
Daily routine: pull, write, commit, push
- Pull first. Open GitSync.md and pull before you open the file in iA Writer, so you edit the latest copy.
- Write in iA Writer. Switch back to GitSync.md when you're done.
- Commit and push. Review the changed files, write a message and use Commit & Push.
If you forgot to pull first and the push is rejected, nothing is lost. Pull, let Git merge, then push again. If the same lines changed on both sides, follow the conflict recovery guide and compare versions with the Markdown diff tool.
To make pull and push one tap, use Shortcuts automation. iOS doesn't run background sync on a schedule, so don't expect a sync while the app is closed: see background sync on iPhone.
Mac and other devices
Clone the same repository on your Mac with plain git or any Git GUI. iA's Mac support page says you can add folders as extra Locations with Go → Add Location… or the + button in the Organizer, so you can add the clone there. The same rule applies: pull before you write, push when you finish, and let one device finish before you start on another.
Keep the repository clean
Folders on a Mac collect .DS_Store files that you don't want in history. Put a .gitignore at the repository root:
.DS_Store
._*
.Trash/
The gitignore generator is built for Obsidian vaults, so its presets don't fit here; the three lines above are enough for a plain notes folder. Ignoring a file doesn't remove one that is already tracked.
Troubleshooting
The folder doesn't appear in Add Location
iA needs the full folder reachable through the iOS Files API. Check that the clone finished and that the folder is visible under On My iPhone in the Files app. If you cloned somewhere else, clone again into a local folder as above.
Changes don't show up in iA Writer after a pull
Close and reopen the file. If it's still stale, re-select the Location in the Organizer.
Push rejected
The remote has commits you don't. Pull first, then push. For overlapping edits, see the conflict recovery guide and the Markdown diff tool. Don't force-push to clear the error.
Authentication errors
Check that the token has write access to the repository and hasn't expired, or that the SSH key is added on the host. See Obsidian Git not working on iPhone; the authentication steps are the same for any repository.
Options compared
| Option | Git history | Push from the phone | Works with iA Writer Locations |
|---|---|---|---|
| GitSync.md | Yes | Yes | Yes, when cloned into a folder under On My iPhone or On My iPad |
| Working Copy | Yes | Yes | It's a Git client with Files access; we haven't tested it with iA Writer for this guide |
| iCloud only | No | No Git push; files sync through iCloud | Yes, it's iA Writer's default location |
For features and prices, read GitSync.md vs Working Copy and the comparison of Git clients for iPhone and iPad.
FAQ
Does iA Writer support Git natively?
Not as far as iA's support documentation shows. Its library pages describe iCloud and other storage reachable through Files, not Git. That's why a separate Git client is needed.
Can I use iA Writer on Android with this?
This guide covers iPhone and iPad. GitSync.md is also on Google Play. For Android, see Sync Markor notes with Git on Android and the best Git clients for Android.
Can I use iCloud instead?
iA Writer works with iCloud, but a Git working copy there is a poor fit; see the folder section.
