Skip to content

Instantly share code, notes, and snippets.

@kognise
Last active March 12, 2022 23:19
Show Gist options
  • Save kognise/6dd9aadbd3686ed7f4a96f0844c47558 to your computer and use it in GitHub Desktop.
Save kognise/6dd9aadbd3686ed7f4a96f0844c47558 to your computer and use it in GitHub Desktop.
GitHub and Obsidian
  • Create a repository and set it to private if you want
  • In your vault, run these commands substituting the values
    git init
    git add .
    git commit -m "Initial commit"
    git remote add origin [email protected]:<USERNAME>/<REPO_NAME>.git
    git push -u origin master
    
  • Now...
Using my spooooky unofficial Git plugin
  • Install it
  • Press sync inside Obsidian whenever you make changes
Using the git cli
  • Open a terminal in your vault folder
  • Run git add . && git commit -m 'Commit name'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment