Quick steps
  1. Put your Markor Notebook folder in a Git repository (a private one is fine) and push it to GitHub, GitLab, Codeberg or your own server.
  2. In GitSync.md, open Settings → Save new clones in → Choose a device folder, allow all-files access and pick a folder such as Documents/Markor.
  3. Clone the repository. It lands in <owner>/<repo> inside that folder.
  4. In Markor, set the Notebook to that cloned folder.
  5. Pull in GitSync.md before you edit. Commit and push after.

Why Markor needs a separate sync app

Markor doesn't sync notes itself. Its README and FAQ say "Markor is and will stay an offline focused application" and "The project recommendation is Syncthing." Its README also says files are stored "in a user selectable folder, defaulting to the internal storage "Documents" directory." That is what makes Git possible: your notes are ordinary files in a folder, so any app that can run Git on that folder can sync them.

Options compared

The table covers what we can state from the tools' own descriptions. It is not a ranking. "Depends" means the answer comes from how you set it up.

SyncthingTermux + scriptGitSync.md
Version historyNot Git history. It syncs files between your devicesYes: Git commitsYes: Git commits
Works across Git hostsNo Git host involved; your devices talk to each otherAny host Git can reachGitHub and any other Git host (token or SSH key)
Setup effortPair your devices and share the Notebook folderInstall Termux, set up Git and credentials, write and maintain the scriptPick a folder, sign in, clone
Background behaviourDepends on how Syncthing runs on your devicesOnly if you script itManual by default; optional Background Sync that Android schedules, never real time
ConflictsDepends on Syncthing's conflict handlingYou resolve them with Git commands in the shellStops and shows the conflict; keep either version or edit by hand

Syncthing is the project's recommendation and a fair choice if you don't need version history or a Git host: you don't commit anything, and your notes stay between your own devices. Termux plus a script (git add, commit, pull, push) gives you full Git and costs nothing, if you're comfortable in a shell and happy to maintain the script. GitSync.md gives you the same Git history through an app. It is free to download, with a one-time $9.99 unlock on Google Play after a free vault check. It's published by the same developer as this site. For other Android Git apps, see every Android Git client compared.

Before you start

  • An account on a Git host and an empty or existing repository. Private is fine, and a good default for personal notes.
  • A credential: a token or an SSH key. For GitHub, the GitHub token generator helps.
  • Markor on the phone, from F-Droid or Google Play.
  • GitSync.md from Google Play on Android 9 or later.
  • A backup of your current Notebook folder before you change anything.

Put your existing notes in a repo

Either do it on a computer, or create an empty repository on your host and copy the files into the clone on the phone later. On a computer, run this inside the folder that holds your notes. The commands are standard; see the Git documentation.

git init
git add .
git commit -m "Initial commit"
git branch -M main
git remote add origin https://example.com/YOU/my-notes.git
git push -u origin main

If you start from an empty repository instead, clone it with GitSync.md first (below), then copy your notes into the cloned folder with a file manager.

Choose the device folder

Git needs a real writable folder with a hidden .git directory, and Markor needs to open that same folder. Shared storage such as Documents gives both apps one normal folder. A cloud folder doesn't: GitSync.md says "Cloud folders such as Google Drive can't hold a Git repository". Android's all-files access is what lets GitSync.md write there. The same flow is documented, with screenshots, in the Logseq on Android guide.

Suggested layout: Documents/Markor, so the repository ends up at Documents/Markor/<owner>/<repo>.

  1. In GitSync.md, open Settings → Save new clones in → Choose a device folder.
  2. The first time, the app shows Allow local folder access. Tap Enable access, turn on Allow access to manage all files, and go back.
  3. In Android's folder picker, create or pick Documents/Markor, tap Use this folder, then Allow, then Use for new clones.

Clone the repository

  1. On the first screen choose Continue with GitHub, or the option for another host, which opens Any Git host.
  2. For GitHub, go to Add a vault → Clone from GitHub and tap Clone next to the repository. For another host, paste the remote URL on the Any Git host screen, choose SSH key, Token or None (public repositories), and tap Test & clone.
  3. Let the vault check finish, then confirm. It reads repository metadata such as size and file count; nothing downloads until you confirm.

Host guides: GitHub, GitLab, Codeberg. They are written for Obsidian, but the account, token and SSH steps are the same. A GitHub clone lands in <owner>/<repository> inside your chosen folder; a clone by URL goes into a generated folder under custom/, and you can pick the folder for that clone under Clone location → Choose another folder. Settings → Save new clones in shows where each vault is. More on Android setup is in Obsidian Git on Android.

Point Markor's Notebook at the clone

Markor's README describes the Notebook as "the root folder of documents" that "can be changed to any location on the filesystem." Open Markor's settings and look for the option that sets the Notebook folder (we haven't recorded the exact label in the current Markor release, so it may read differently). Choose the cloned repository folder itself, for example Documents/Markor/me/my-notes: the folder that has your notes and the hidden .git inside it, not its parent.

QuickNote and ToDo files. The Markor FAQ says the location of each is "freely choosable and independent from the Notebook directory." So they aren't synced just because the Notebook is. If you want them in Git, move or set them to a path inside the cloned repository.

Daily routine: pull, edit, commit and push

  1. Pull first. In GitSync.md, open the vault and tap Pull.
  2. Edit in Markor, then leave it.
  3. Commit and push. In GitSync.md the vault screen lists what changed. Tap Commit & push, choose the files, write a message and leave Push right after on.

Nothing commits for you unless you opt in to Background Sync's commit and push, which is off by default. Don't run Syncthing or a cloud client on the same folder, since two tools rewriting the same files cause duplicates and conflicts.

Things specific to Markor

Encryption

Markor's README lists that it "can encrypt your textfiles with AES256." An encrypted file is binary to Git: it can't show a readable diff or merge two edits, so any conflict means picking one whole file. For a synced repository, leave encryption off, or accept whole-file conflicts. If you need private notes, a private repository is the simpler protection.

todo.txt conflicts

A todo.txt is one file that changes often, so it's the file most likely to conflict. Pull before you edit, push when you finish, and edit on one device at a time. A task list is one line per task, so conflicts are usually easy to fix by hand.

Ignoring files

We couldn't confirm from Markor's README which folders or backup files Markor creates inside a Notebook, so we don't name any. After a session, check GitSync.md's changed-files list, or run git status on a computer. Anything you don't want tracked goes in a .gitignore at the repo root; the gitignore generator is built for Obsidian, so its presets don't apply here.

File formats

Markor's README lists "Markdown, todo.txt, Zim/WikiText, Plaintext, csv, ics, ini, json, toml, vcf, yaml." These are text formats, which Git can diff and merge line by line.

Troubleshooting

Markor doesn't show the files

Check the folder level: the Notebook must be the cloned folder that holds your notes, not its parent or a subfolder. Then check that Markor has storage permission in Android's app settings, and that the pull finished in GitSync.md. If you keep notes in subfolders, look inside them.

Push rejected

The remote has commits you don't. Pull first, then push. Don't force-push to clear the error.

Authentication fails (401 or 403)

The token is wrong, expired or missing the access to the repository. For GitHub, generate one with the token generator and give it access to that repository with permission to write contents. For other hosts, check the token's scope in their settings, or use an SSH key.

Merge conflicts

If two devices changed the same file, GitSync.md stops and shows the conflict. Keep either version or edit by hand. To compare two versions, use the Markdown diff tool; the conflict recovery guide applies to any text files.

FAQ

Does Markor have built-in Git?

Not that we found in its README, which describes it as offline-focused and recommends Syncthing. This guide uses GitSync.md alongside it.

Can I use Google Drive instead?

No. A cloud folder can't hold a Git repository; GitSync.md says so on its folder screen. Use a normal folder in shared storage.

Does it work with Obsidian too?

Yes, GitSync.md is built around Obsidian vaults. See Obsidian Git on Android. You can even open the same cloned folder in both apps, as long as only Git syncs it.

Is Markor free and open source?

Its README says "The code of the app is licensed Apache 2.0" and it is listed on F-Droid. GitSync.md is free to download on Android, with a one-time $9.99 unlock after a free vault check, and also has an iPhone and iPad app; this guide focuses on Android.