Sync your files across mobile and desktop devices with one click.
- Universally supported: sync your vault across multiple devices, support both mobile and desktop
- Auto sync is now available 🎉
- One-click to sync your vault.
- Conflict resolution: Stores conflicting changes from remote in the local _fit folder so you can resolve conflicts after sync
- Guided setup: Intuitive settings, easy to configure even if you are new to GitHub
- Works with existing vaults or repos
Note: This plugin is still in alpha, please backup your vault before using this plugin.
- Create a personal access token (refers to Github: creating a personal access token)
- Once the personal access token is filled in, you can authenticate the user. The GitHub username, list of repositories, and branches will auto-populate.
- Select a repo and branch and you are ready to sync.
![Screenshot 2024-03-13 at 9 49 33 AM](https://private-user-images.githubusercontent.com/34743132/312282881-3ab3665a-5a78-468c-a936-fcf5fd2a8774.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAxODkzNDAsIm5iZiI6MTcyMDE4OTA0MCwicGF0aCI6Ii8zNDc0MzEzMi8zMTIyODI4ODEtM2FiMzY2NWEtNWE3OC00NjhjLWE5MzYtZmNmNWZkMmE4Nzc0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA1VDE0MTcyMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg4MDExNDhmMDgzZmNkOWEyYzM4MzVhODhhNmE4NmNkZmY0YWY3OGFmZTgyZTRhNmZiYWM0YTMyMTU2YjllMDkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.zyQLzpLISwJFmgOSNlveNVh8D-utjYRykAXJL_2ClVg)
- Repo cannot be empty (Select 'Add a README file' if you are creating a new repo)
- It is advised to use a new repo for syncing an existing vault, to minimize the chance of file name conflict on the first sync
- If your existing vault or repo is large, the initial sync would take longer and require a good internet connection
- Improve user notification
- allow user to opt in to get list of file changes in Notice
- Enable integration of other git tools (e.g. gitlab, gitea)
There are other community plugins with more advanced git features, if you need features such as branching of your repo, Git is a nice plugin to check out.
There are also other plugins for synchronizing changes such as Git integration, GitHub sync, and YAOS. However, they do not support mobile yet as of writing this plugin.
- This plugin used Obsidian Sample Plugin as a template.
- This plugin uses Octokit to interface with GitHub rest api across devices.