Obsidian Sync
Obsidian Sync
- I use this script for the obsidian vault sync to github so that i can directly push all my notes to github with just one click and can use the same notes in all the different devices although i just have two device but it is cool fix. :)
Steps
- Create a simple bash script sync.sh
- Paste the code ```
#!/bin/bash
gstatus=git status --porcelain
if [ ${#gstatus} -ne 0 ] then
git add --all
git commit -m "$gstatus"
git pull
git push
fi
```
- run the bash script !! voila