How to sync your org files using Git

by Metanote Team in Metanote on 2023-12-05 updated 2024-03-26 tags: sync git Translations: zh

Choose a Git tool on iOS that you like, here I'll use PolyGit as an example.

  1. In PolyGit, create or clone a repository, then proceed to the next step.
  2. Open Metanote, swipe from the left edge to open the file manager. In the top left corner, choose "Edit Location," and click the "+" to add a new location.
  3. In the system file selection that pops up, choose "My iPhone" -> PolyGit -> "The Repository You Just Cloned," then click "Open" in the top right corner.
  4. When adding an external location for the first time, Metanote will parse each file's to-do items and generate a to-do list and agenda view. If your files are not numerous, this process will only take a few seconds. If you primarily use this folder, set it as the default location.
  5. When files change externally, such as pulling new content, + due to performance considerations, Metanote currently doesn't automatically parse newly changed files. +

    From Metanote iOS version 0.10.0, automatic update is supported. Now all you need to do is switch back to Metanote after the git pull operation, and all updates will be automatically applied instantly. And, after editing is complete in Metanote, switch to the Git tool to perform the git push operation.

That's all!