Obsidian git on Android 14 (Samsung) 2024
24 May 2024Obsidian has paid official syncing system, but with it’s open and vibrant community, there are various ways to sync your notes between multiple devices. This post demonstrates how I set up the obsidian-git plugin on my Samsung S23 Ultra phone with One UI 6.x (Android 14).
This guide:
- assumes you have basic familiarity with git
- does NOT require root access
- does NOT require Termux running in the background after the initial git clone.
Install Termux to get shell and git on your Android phone
- Download F-Droid
- From F-Droid, download Termux
- Open Termux, run
termux-change-repo
. Press the ↓ button and press spacebar to tick all repositories, then press enter to move to the next screen - Press ↓, then spacebar to tick the
Mirrors hosted by Albatross
, press enter - Run
pkg install git -y
- Run
termux-setup-am
- Run
termux-setup-storage
- See Termux-setup-storage - Termux Wiki for details
Clone the Git repo from GitHub
- Run
cd storage/shared
(If you get permissions issues, refer to this page) - Run
git clone <your repository>
and enter your login when prompted. You may need to create a personal access token if you’re using GitHub.- You need to add the following permissions to the access token
- Repository: Your Notes/Obsidian repository
- Repository permission: Metadata: Read access
- Repository permission: Code and commit statuses: Read and write access
- You need to add the following permissions to the access token
Setup Obsidian and obsidian-git plugin
- Install and open Obsidian
- Click “Open folder as vault”, click on your phone name at the top to navigate to the top directory, and click on your git repository name. Then click “use this folder”
- Install and enable the obsidian-git plugin
- Enter your GitHub username and personal access token in the obsidian-git plugin settings
I purchased the catalyst license to get the early access version and support Obsidian team’s great work.
I followed these guides to get things setup originally:
- Tutorial for automatically syncing an Obsidian vault with Git on an Android device · GitHub
- Obsidian + Android + Syncing via GitHub in 2023
Limitations
Due to the git implementation used by Obsidian-git plugin, you might encounter Performance issues on mobile. I did not notice any issue yet with my S23 Ultra and small knowledge base.