I’ve recently starting using Obsidian MD for taking notes, having used Google Docs, Notion, Next Cloud and just raw markdown that I wrote in my own style. So far I’ve been liking the mark down approach, with files on my own system. Since the content does not get automatically synced by Obsidian, I’ve decided to use a remote private git repository, hosted by Github, to sync my content across devices. This is fairly easy to do on Mac, Windows and Linux but took a little imagination to achieve on Android. I decided to document my steps in hopes of helping others out, especially because the Obsidian MD app recently was released.
- Install the Termux Android app
- Install the Obsidian Android app
- Generate SSH keys. (see this post for more info)
- Upload the public SSH key to Github
- Open termux and run the command
$ termux-setup-storage. This will create a storage directory in the Termux shell’s home directory, which is symlinked to
- Clone your remote git notes repository with Termux, using the git command line, into the
- Open the Obsidian android app
- Browse to the repository and open it as a vault
At this point the mobile app with perform a one time index. For reasons unknown, this process does not complete successfully on my Pixel 4A and the application crashes. I’ll update my usage of the mobile app once I figure out how to get around the crashing.