Skip to content

Instantly share code, notes, and snippets.

@ahue
Created April 10, 2022 12:49
Show Gist options
  • Save ahue/4b64574acdeca40a90e6ade8ad8fd4c6 to your computer and use it in GitHub Desktop.
Save ahue/4b64574acdeca40a90e6ade8ad8fd4c6 to your computer and use it in GitHub Desktop.
Obsidian pull-push script for Android
#!/data/data/com.termux/files/usr/bin/bash
cd ~/storage/shared/documents/my-vault
git add --all
git commit -m "mobile update $(date)"
git pull --rebase
git push origin main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment