I read a few other posts but have found an easier way.
The key difference between those posts and this one is a (I think) new feature in iSH and iOS. (Hence the * in the title - you need iSH for a few things, then you can delete it.) iSH now mounts your iSH filesystem into the iOS Files app, where you can access them from within the iOS environment.
Note: I’m assuming you know Git and Obsidian for this tutorial.
I’ll use ForceBru’s excellent tutorial as a basis for this tutorial.
Tutorial
- Create an Obsidian Vault and configure it to use Git (in this case, Github). There are many good tutorials for this.
- Commit and push your vault to Github.
- On your iOS device:
- Install Obsidian
- Install and enable the Obsidian Git plugin
- Add your name and email to the Author Name and Author Email fields in the Obsidian Git settings
- Create a Personal Access Token (aka PAT) on Github
- Create an empty local vault on iOS
- Install iSH from App Store
- In the iOS Files app:
- Click on
Browse
in the lower right corner and, if necessary, click< Browse
in the upper left until you get to the topmostBrowse
page. - Click on
On My iPhone
- Click on the
Obsidian
folder with the Obsidian logo on it - You will see a folder with the name of the empty Vault you created above
- Delete that folder by long pressing on it and clicking
Delete
but remember the name of the folder.
- Click on
- In iSH command line (start the iSH app)
- install git:
- Update Alpine repos:
apk update
- Install git:
apk add git
- Change to your home directory
cd ~
- Clone your git repository
git clone https://github.com/<username>/obsidian-git.git
-use your own repository URL from Github. You will need to use your username and the PAT you created above.- (Optional) Run
ls -a
to see whether your files are there
- Update Alpine repos:
- install git:
- In the iOS Files app:
- Click on
Browse
in the lower right corner and, if necessary, click< Browse
in the upper left until you get to the topmostBrowse
page. - Click on
iSH
and thenroot
. You should see your newly cloned Vault git repo there. If you click on the repo, you should see all of your files. (If you do this, make sure you click< root
in the upper left to get back to the correct level. - Long press the folder which represents your git repo.
- Click
Move
- Click
On My iPhone
in the upper left - Click on the
Obsidian
folder with the Obsidian logo on it (which should be empty, or you skipped theDelete
step above). - Click on
Copy
in the upper right corner - Wait for the copy to complete
- Long press the folder that was just copied, and select
Rename
. Type in the name of the folder you had here before, which is the name of the empty Vault you created.
- Click on
- In the Obsidian app:
- You should now see all of the files from your vault, although you may need to click on the show sidebar button in the upper left if all you see is
No file is open
. - Click on the hamburger icon in the lower right (three horizontal lines)
- Click on
Open Git source control
- This is the same Obsidian Git panel you have on your desktop.
- You should now see all of the files from your vault, although you may need to click on the show sidebar button in the upper left if all you see is
- (Optional) Delete the iSH app
After that, use Obsidian just like you do on your desktop to sync the files using Git. No more using iSH to push and pull files. It all happens in the Obsidian app.
This may be common knowledge these days, but I couldn’t find it when I searched this morning.