diff --git a/publish/attachments/create-pat-github.png b/publish/attachments/create-pat-github.png new file mode 100644 index 0000000..e36cba3 Binary files /dev/null and b/publish/attachments/create-pat-github.png differ diff --git a/publish/connect-obsidian-vault-with-github.md b/publish/connect-obsidian-vault-with-github.md index a742cf4..9835ea5 100644 --- a/publish/connect-obsidian-vault-with-github.md +++ b/publish/connect-obsidian-vault-with-github.md @@ -1,12 +1,24 @@ --- title: "How to connect Obsidian Vault with Github" --- -1. Open your Obsidian Vault -2. Install the [Obsidian Git](https://github.com/denolehov/obsidian-git/wiki/Installation) community plugin -3. Create a folder to store the repository. -4. Run the command (CMD/Ctrl + P): `Clone an existing remote repo` +1. Create a repository or [[publish-your-obsidian-notes-with-linked-blog-starter|fork the md repo]] in github +2. [Download Git](https://git-scm.com/downloads) +3. Create a [personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token#creating-a-personal-access-token-classic) from github +![[create-pat-github.png]] +5. Install the [Obsidian Git](https://github.com/denolehov/obsidian-git/wiki/Installation) community plugin +6. Create a folder to store the repository. (e.g. `remote-blog/`). Set scopes to repo & expiration to no expiration +7. Run the command (CMD/Ctrl + P): `Clone an existing remote repo` ![[clone-repo-git-plugin.png]] -5. Paste the URL of the forked repository -6. Type in the folder you created in step 3 -7. Restart Obsidian -8. Finally, to publish your notes run the command "Obsidian Git: Create backup" by opening the command palette (CMD/Ctrl + P) \ No newline at end of file +5. Paste the URL of the forked repository in the following format +``` +https://@github.com//.git +``` + +For example it might look like this: +``` +https://ghp_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX@github.com/ithinkwong/linked-blog-starter-md.git +``` +7. Then type in the folder you created in step 5 (e.g. `remote-blog/`) +8. Restart Obsidian +9. Make edits to your notes +10. Publish your notes run the command "Obsidian Git: Create backup" by opening the command palette (CMD/Ctrl + P) \ No newline at end of file