How to sync Obsidian on iPad with PC
How to sync your Obsidian on iPad with PC via GitHub?
This blog requires you to backup your Obsidian vault via GitHub. See my blog about how to do it.
Obsidian works well on PC with the Git plugin and GitHub. However, due to limited ways to sync Obsidian, it is difficult to sync your Obsidian on iPad with that on your PC. This blog is about using iSH (an app which is called “Linux shell for iOS) to sync your Obsidian vault with GitHub.
- Download Obsidian and iSH in App Store.
- Open Obsidian, specify a folder for your Obsidian vaults and create your vault.
- Open iSH and download Git: run
apk update
andapk add git
- Get the local vault sync with your GitHub repository
- change directory to your Obsidian folder
- change directory to your vault just created
- run
git init
- run
git remote add origin your_github_repo_url
- run
git pull origin main
- Now your local vault has synced with your GitHub repo. Don’t forget to set the settings and pulgins.
Troubleshooting:
- Cannot init your local repository
- run
git config --global --add safe.directory '*'
- Cannot authorize with your GitHub password
- go to your GitHub account ->
Settings
->Developer Settings
-> retrive your Personal access token -> replace the password with the token
Now it is done!