[[Obsidian]] | [[NixOS Desktop Setup Guide#Download Obsidian Notes]]
# Sync Obsidian with Git
Open Obsidian so that it's fully synced with Obsidian sync, then run the following:
```sh
git fetch --all --prune
git add -A
git commit -m "Sync Obsidian with Git"
git pull --rebase -X theirs
```
I've also added a short command for this:
```sh
sync_obsidian
```