├── .obsidian ├── config ├── plugins │ └── obsidian-git │ │ ├── main.js │ │ └── manifest.json └── workspace ├── Fixing PATH.md ├── README.md ├── attachments ├── Pasted image 20210325185111.png ├── Pasted image 20210325191407.png ├── Pasted image 20210325192825.png ├── Pasted image 20210325194350.png ├── Pasted image 20210325194749.png ├── Pasted image 20210325195430.png ├── Pasted image 20210325195854.png ├── Pasted image 20210325201407.png ├── Pasted image 20210325201541.png ├── Pasted image 20210325202742.png └── Pasted image 20210325211723.png └── tabbed mode.css /.obsidian/config: -------------------------------------------------------------------------------- 1 | {"pluginEnabledStatus":{"file-explorer":true,"global-search":true,"switcher":true,"graph":true,"backlink":true,"command-palette":true,"markdown-importer":true,"word-count":true,"open-with-default-app":true},"theme":"moonstone","readableLineLength":false,"showLineNumber":true,"useMarkdownLinks":true,"newLinkFormat":"relative","attachmentFolderPath":"./attachments","alwaysUpdateLinks":true,"enabledPlugins":["obsidian-git"]} -------------------------------------------------------------------------------- /.obsidian/plugins/obsidian-git/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "obsidian-git", 3 | "name": "Obsidian Git", 4 | "description": "Backup your vault with git.", 5 | "isDesktopOnly": true, 6 | "js": "main.js", 7 | "version": "1.7.0" 8 | } 9 | -------------------------------------------------------------------------------- /.obsidian/workspace: -------------------------------------------------------------------------------- 1 | { 2 | "main": { 3 | "id": "185562fef2c7a47c", 4 | "type": "split", 5 | "children": [ 6 | { 7 | "id": "e82e5e299c8cbda9", 8 | "type": "leaf", 9 | "active": true, 10 | "state": { 11 | "type": "markdown", 12 | "state": { 13 | "file": "README.md", 14 | "mode": "preview" 15 | } 16 | } 17 | } 18 | ], 19 | "direction": "vertical" 20 | }, 21 | "left": { 22 | "id": "dfb7163cb3d0f925", 23 | "type": "split", 24 | "children": [ 25 | { 26 | "id": "e11f812113cb35d3", 27 | "type": "tabs", 28 | "children": [ 29 | { 30 | "id": "92b9e0b8310dce21", 31 | "type": "leaf", 32 | "state": { 33 | "type": "file-explorer", 34 | "state": {} 35 | } 36 | }, 37 | { 38 | "id": "9bb39a119b8ea25d", 39 | "type": "leaf", 40 | "state": { 41 | "type": "search", 42 | "state": { 43 | "query": "", 44 | "matchingCase": false, 45 | "explainSearch": false, 46 | "collapseAll": false, 47 | "extraContext": false, 48 | "sortOrder": "alphabetical" 49 | } 50 | } 51 | } 52 | ] 53 | } 54 | ], 55 | "direction": "horizontal", 56 | "width": 300 57 | }, 58 | "right": { 59 | "id": "c0cd463eea941083", 60 | "type": "split", 61 | "children": [ 62 | { 63 | "id": "4b91def8ad9c1126", 64 | "type": "tabs", 65 | "children": [ 66 | { 67 | "id": "53b67de737720d27", 68 | "type": "leaf", 69 | "state": { 70 | "type": "backlink", 71 | "state": { 72 | "file": "README.md", 73 | "collapseAll": false, 74 | "extraContext": false, 75 | "sortOrder": "alphabetical", 76 | "backlinkCollapsed": false, 77 | "unlinkedCollapsed": true 78 | } 79 | } 80 | } 81 | ] 82 | } 83 | ], 84 | "direction": "horizontal", 85 | "width": 300, 86 | "collapsed": true 87 | }, 88 | "lastOpenFiles": [ 89 | "README.md", 90 | "Fixing PATH.md", 91 | "Fixing path.md", 92 | "Untitled.md" 93 | ] 94 | } -------------------------------------------------------------------------------- /Fixing PATH.md: -------------------------------------------------------------------------------- 1 | # Appendix: Fixing PATH 2 | If your command line indicates that git is not a recognised command, you must configure your PATH. 3 | 4 | Check to see where git for windows was installed. If you didn't change the default settings, it should be installed in `C:\Program Files\Git\bin` or `C:\Program Files (x86)\Git\bin`. 5 | 6 | Press windows to open the start menu and search for PATH. 7 | 8 | ![](attachments/Pasted%20image%2020210325201407.png) 9 | 10 | Select Edit the system environment variables, and then click Environment Variables. 11 | 12 | ![](attachments/Pasted%20image%2020210325201541.png) 13 | 14 | Select Path, and then click edit. Select new, and paste `C:\Program Files\Git\bin` or `C:\Program Files (x86)\Git\bin`, depending on which folder exists. 15 | 16 | Open a command line interface and check if PATH has been configured correctly by typing `git` and pressing enter. If so, continue following the steps in [the tutorial](README.md). 17 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## Using Obsidian Git for the tech unfamiliar (minimal command line usage) 2 | 3 | ### Creating an account 4 | 5 | Make an account at [github.com](https://github.com/). Create an empty repository. 6 | 7 | ![](attachments/Pasted%20image%2020210325192825.png) 8 | 9 | ### Software installation 10 | 11 | Install [git for windows](https://git-scm.com/download/win). 12 | 13 | When installing, make sure to enable the command line PATH, otherwise obsidian git has no means of accessing and automating the backup for you. 14 | 15 | ![](attachments/Pasted%20image%2020210325185111.png) 16 | 17 | Check if git was installed successfully by opening the command line interface [windows+r , `cmd`, enter ] and inputting `git` and pressing enter. 18 | 19 | If successful, it should output something like this. 20 | 21 | ![](attachments/Pasted%20image%2020210325191407.png) 22 | 23 | If this doesn't appear, refer to [fixing path](Fixing%20PATH.md). 24 | 25 | Afterwards, install [github desktop](https://desktop.github.com/). We'll be using github desktop to set up the repository as well as manage credentials. 26 | 27 | ### Cloning the repository and setting up your credentials 28 | Once in github desktop, select File > Options > Account, and log in to your github account. 29 | 30 | ![](attachments/Pasted%20image%2020210325202742.png) 31 | 32 | Now, press File > Clone Repository, and select the empty repository you just created. Where you clone this repository doesn't matter, as long as you remember its location. 33 | 34 | In the top toolbar once again, select Repository > Open in Command Prompt. Paste `git config --global credential.helper wincred` and press enter. That should set up your credentials. 35 | 36 | ### Viewing hidden files 37 | In explorer: 38 | 39 | - Select View > Options > Change folder and search options. 40 | 41 | - Select the View tab and, in Advanced settings, select Show hidden files, folders, and drives and OK. 42 | 43 | 44 | ![](attachments/Pasted%20image%2020210325194749.png) 45 | 46 | ### Making your vault a repository 47 | Open the location of the cloned repository and select the formerly hidden .git folder. Cut this folder and paste it into your vault's root directory. 48 | 49 | Open github desktop. It should normally have a notification informing you it can no longer find your repository. 50 | 51 | ![](attachments/Pasted%20image%2020210325195430.png) 52 | 53 | Press locate, and point it to the location of your vault, which should now also house the .git folder. 54 | 55 | Github desktop will have registered a vast number of changes made to your repository. This is perfectly normal. In the bottom-left corner, fill in the summary and description and then press commit. 56 | 57 | ![](attachments/Pasted%20image%2020210325195854.png) 58 | 59 | After committing, press push origin. This button may also read Publish repository to Github. 60 | 61 | ![image](https://user-images.githubusercontent.com/81381984/113364957-20feba00-9355-11eb-9fed-f5540692b7ea.png) 62 | 63 | ![](attachments/Pasted%20image%2020210325211723.png) 64 | 65 | ### Installing the Obsidian Git plugin 66 | 67 | Disable safe mode in the community plugins tab if you haven't already. Browse the community plugins and search for `Obsidian Git`. Install and enable it. Open the command palette (ctrl+p) and type `git`, and select commit and push all changes. If this tutorial was followed successfully, you should have received a notification that you just successfully committed and pushed files. 68 | 69 | In the obsidian git plugin options, you can set a backup interval, to determine how often automatic backups are made. You can still use the above method to guarantee that important changes are definitely pushed to github however. 70 | 71 | If you're accessing your vault through git across multiple devices, the github desktop application can be useful to resolve conflicts, but is otherwise no longer needed, as the obsidian git plugin will have automated the committing and pushing process. 72 | -------------------------------------------------------------------------------- /attachments/Pasted image 20210325185111.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitobsidiantutorial/obsidian-git-tut-windows/b93365461efee2f241774d0d5300a52f0f9b9bff/attachments/Pasted image 20210325185111.png -------------------------------------------------------------------------------- /attachments/Pasted image 20210325191407.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitobsidiantutorial/obsidian-git-tut-windows/b93365461efee2f241774d0d5300a52f0f9b9bff/attachments/Pasted image 20210325191407.png -------------------------------------------------------------------------------- /attachments/Pasted image 20210325192825.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitobsidiantutorial/obsidian-git-tut-windows/b93365461efee2f241774d0d5300a52f0f9b9bff/attachments/Pasted image 20210325192825.png -------------------------------------------------------------------------------- /attachments/Pasted image 20210325194350.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitobsidiantutorial/obsidian-git-tut-windows/b93365461efee2f241774d0d5300a52f0f9b9bff/attachments/Pasted image 20210325194350.png -------------------------------------------------------------------------------- /attachments/Pasted image 20210325194749.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitobsidiantutorial/obsidian-git-tut-windows/b93365461efee2f241774d0d5300a52f0f9b9bff/attachments/Pasted image 20210325194749.png -------------------------------------------------------------------------------- /attachments/Pasted image 20210325195430.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitobsidiantutorial/obsidian-git-tut-windows/b93365461efee2f241774d0d5300a52f0f9b9bff/attachments/Pasted image 20210325195430.png -------------------------------------------------------------------------------- /attachments/Pasted image 20210325195854.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitobsidiantutorial/obsidian-git-tut-windows/b93365461efee2f241774d0d5300a52f0f9b9bff/attachments/Pasted image 20210325195854.png -------------------------------------------------------------------------------- /attachments/Pasted image 20210325201407.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitobsidiantutorial/obsidian-git-tut-windows/b93365461efee2f241774d0d5300a52f0f9b9bff/attachments/Pasted image 20210325201407.png -------------------------------------------------------------------------------- /attachments/Pasted image 20210325201541.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitobsidiantutorial/obsidian-git-tut-windows/b93365461efee2f241774d0d5300a52f0f9b9bff/attachments/Pasted image 20210325201541.png -------------------------------------------------------------------------------- /attachments/Pasted image 20210325202742.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitobsidiantutorial/obsidian-git-tut-windows/b93365461efee2f241774d0d5300a52f0f9b9bff/attachments/Pasted image 20210325202742.png -------------------------------------------------------------------------------- /attachments/Pasted image 20210325211723.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitobsidiantutorial/obsidian-git-tut-windows/b93365461efee2f241774d0d5300a52f0f9b9bff/attachments/Pasted image 20210325211723.png -------------------------------------------------------------------------------- /tabbed mode.css: -------------------------------------------------------------------------------- 1 | /* REQUIRED */ 2 | 3 | .mod-root.workspace-split.mod-vertical { 4 | overflow-x: hidden; 5 | flex-direction: row-reverse; /* order reversed to work better with pane-relief 'cycle to next pane hotkey' */ 6 | overflow-y: auto; /* no second scrollbar should be visible, if one appears, then I've made a mistake */ 7 | } 8 | 9 | 10 | /* turns inactive panes into tabs*/ 11 | .mod-root.workspace-split.mod-vertical > div { 12 | height: 29px; /* change if you prefer differently sized pane headers */ 13 | border-radius: 6px 6px 0px 0px; /* adds a slight rounding to the top corners of a pane header - NOT ESSENTIAL */ 14 | } 15 | 16 | 17 | /* set active pane below tab bar */ 18 | .mod-root.workspace-split.mod-vertical > div.workspace-leaf.mod-active { 19 | position: absolute; 20 | height: calc(100% - 29px); /* if pane header height is changed from default, edit here to match */ 21 | min-width: 100%; 22 | width: 100%; 23 | top: 29px; /* if pane header height is changed from default, edit here to match */ 24 | } 25 | 26 | .mod-root.workspace-split.mod-vertical > div.workspace-leaf:only-of-type { 27 | top: 0px; 28 | bottom: 0px; 29 | height: 100%!important; 30 | } 31 | 32 | .view-header-title-container:after { /* remove pane header shadows */ 33 | display:none; 34 | } 35 | 36 | 37 | /* OPTIONAL */ 38 | 39 | /*set maximum tab width, left align tabs */ 40 | .mod-root.workspace-split.mod-vertical > div { 41 | flex-grow: 0; 42 | flex-shrink: 1; 43 | flex-basis: 12.5%; 44 | } 45 | 46 | .mod-root.workspace-split.mod-vertical { 47 | justify-content: flex-end; 48 | } 49 | 50 | /* hide header button, more options, and edit button on tabs */ 51 | 52 | .mod-root.workspace-split.mod-vertical > div.workspace-leaf a[aria-label="Edit (Ctrl/Cmd+Click to edit in new pane)"], 53 | .mod-root.workspace-split.mod-vertical > div.workspace-leaf .view-header-icon, 54 | .mod-root.workspace-split.mod-vertical > div.workspace-leaf a[aria-label="Preview (Ctrl/Cmd+Click to open in new pane)"], 55 | .mod-root.workspace-split.mod-vertical > div.workspace-leaf a[aria-label="More options"]{ 56 | display: none; 57 | } 58 | 59 | .mod-root.workspace-split.mod-vertical > div.workspace-leaf.mod-active a[aria-label="Edit (Ctrl/Cmd+Click to edit in new pane)"], 60 | .mod-root.workspace-split.mod-vertical > div.workspace-leaf.mod-activ a[aria-label="Preview (Ctrl/Cmd+Click to open in new pane)"], 61 | .mod-root.workspace-split.mod-vertical > div.workspace-leaf.mod-active .view-header-icon, 62 | .mod-root.workspace-split.mod-vertical > div.workspace-leaf.mod-active a[aria-label="More options"]{ 63 | display: block; 64 | } 65 | 66 | 67 | /* smaller tab titles */ 68 | .mod-root.workspace-split.mod-vertical > div.workspace-leaf .view-header-title{ 69 | font-size: 14px; 70 | padding-left: 0.2rem; 71 | } 72 | 73 | .mod-root.workspace-split.mod-vertical > div.workspace-leaf.mod-active .view-header-title{ 74 | font-size: inherit; 75 | padding-left: 0rem; 76 | } 77 | 78 | 79 | /* underline next tabs [pane relief cycle to next pane hotkey] */ 80 | .mod-root.workspace-split.mod-vertical > div.workspace-leaf{ 81 | text-decoration: underline; 82 | } 83 | 84 | .mod-root.workspace-split.mod-vertical > div.workspace-leaf.mod-active{ 85 | text-decoration: none; 86 | } 87 | 88 | .mod-root.workspace-split.mod-vertical > div.workspace-leaf.mod-active ~ div.workspace-leaf { 89 | text-decoration: none!important; 90 | } 91 | 92 | 93 | 94 | 95 | /* increase room for tab title */ 96 | 97 | .mod-root.workspace-split.mod-vertical > div.workspace-leaf .view-actions{ 98 | padding: 4px 0px; 99 | } 100 | 101 | .mod-root.workspace-split.mod-vertical > div.workspace-leaf.mod-active .view-actions{ 102 | padding: 4px 10px; 103 | } 104 | 105 | 106 | 107 | 108 | --------------------------------------------------------------------------------