Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 588 Bytes

Add Git Repository to Obsidian.md

File metadata and controls

24 lines (19 loc) · 588 Bytes

Add Git Repository to Obsidian

I found these instructions from https://www.reddit.com/r/ObsidianMD/comments/qbvqft/obsidian_git/.

  1. Navigate to the Obsidian folder. You should see other git folders inside.
  2. Create a new git repo.
gh repo create <repo name> --private
  1. Set the remote repository as upstream.
git push --set-upstream origin main
  1. Stage, commit, and push.
git add . && git commit -m "initial commit" && git push
  1. Open Obsidian.
  2. Open the Command Palette.
  3. Create a backup with Obsidian Git.
  4. You should see your repo in GitHub!