https://github.com/denolehov/obsidian-git

Obsidian Git

Simple plugin that allows you to backup your Obsidian.md vault to a remote git repository (e.g. private repo on GitHub). This plugin assumes you have existing git repository initialized locally and credentials are setup.

On advantages of backing up your vault with git I suggest reading this amazing article by @tallguyjenks. You can find a "how-to" on git repository setup there as well, this plugin does not expose an interface to initialize git repository (yet).

Synergises well with GitJournal mobile markdown note taking app.

How to use

Requirements

How to create a local repo and push it to GitHub

Features

Note: it is recommended to exclude obsidian workspace cache files from the repository (or even whole .obsidian directory) due to potential noise in the git history.

If you'd like to do that, scroll to the bottom for a short guide.