Skip to content

Instantly share code, notes, and snippets.

@lnxfsf
Created June 30, 2023 13:14
Show Gist options
  • Select an option

  • Save lnxfsf/732b8473af8d7f8b94b75745a867be1a to your computer and use it in GitHub Desktop.

Select an option

Save lnxfsf/732b8473af8d7f8b94b75745a867be1a to your computer and use it in GitHub Desktop.
- Create repo in GitHub
- Clone in directory where you want it (this is for PC)
- And in terminal, just make first commit and push. So plugin in Obsidian can do those easily next time.
# Windows/Linux
- Set up ssh keys
- Install https://github.com/denolehov/obsidian-git
Community plugin in obsidian (obsidian://show-plugin?id=obsidian-git)
- Configure plugin.. like username and email, but if there is ssh in OS, then no need to set up anything else.
--------
# Android
- Create empty vault
- Install same plugin on phone.
- Create git token:
Minimal permissions required are
"Read access to metadata"
"Read and Write access to contents and commit status"
- Under the "Authentication/Commit Author" section, fill in the username on your git server and your password/personal access token.
- Exit plugin settings, open command palette, choose "Obsidian Git: Clone existing remote repo".
You just use http way of cloning in github (so it have .git at end of url.. )
Overide
- Then you can add username and email, to be synced...
--------
In plugin settings, add it to be synced every 1 minute.
No notifications.
Auto backup after file change
Auto pull interval 1 minute
Pull updates on startup to be On
Push on backup to be On
Pull changes before push to be On
------------
[Docs](https://publish.obsidian.md/git-doc/Start+here)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment