Skip to content

How To Set Up Obsidian Git

  1. Create a repository in Github
  2. Download Git 1.2k
  3. Create a personal access token 2.4k from Githubcreate-pat-github.png
  4. Install the Obsidian Git 3.7k community plugin
  5. Create a folder to store the repository. (e.g. sync/). Set scopes to repo & expiration to no expiration
  6. Run the command (CMD/Ctrl + P): Clone an existing remote repo clone-repo-git-plugin.png
  7. Paste the URL of the forked repository in the following format
Terminal window
https://<PERSONAL_ACCESS_TOKEN>@github.com/<USERNAME>/<REPO>.git
For example it might look like this:
```bash
https://ghp_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX@github.com/shishir435/obsidianNotes.git
8. Then type in the folder you created in step 5 (e.g. `sync/`)
9. Restart Obsidian
10. Make edits to your notes
11. Publish your notes run the command “Obsidian Git: Create backup” by opening the command palette (CMD/Ctrl + P)