Giter VIP home page Giter VIP logo

obsidian-git-tut-windows's Introduction

Using Obsidian Git for the tech unfamiliar (minimal command line usage)

Creating an account

Make an account at github.com. Create an empty repository.

Software installation

Install git for windows.

When installing, make sure to enable the command line PATH, otherwise obsidian git has no means of accessing and automating the backup for you.

Check if git was installed successfully by opening the command line interface [windows+r , cmd, enter ] and inputting git and pressing enter.

If successful, it should output something like this.

If this doesn't appear, refer to fixing path.

Afterwards, install github desktop. We'll be using github desktop to set up the repository as well as manage credentials.

Cloning the repository and setting up your credentials

Once in github desktop, select File > Options > Account, and log in to your github account.

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.

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.

Viewing hidden files

In explorer:

  • Select View > Options > Change folder and search options.

  • Select the View tab and, in Advanced settings, select Show hidden files, folders, and drives and OK.

Making your vault a repository

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.

Open github desktop. It should normally have a notification informing you it can no longer find your repository.

Press locate, and point it to the location of your vault, which should now also house the .git folder.

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.

After committing, press push origin. This button may also read Publish repository to Github.

image

Installing the Obsidian Git plugin

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.

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.

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.

obsidian-git-tut-windows's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

obsidian-git-tut-windows's Issues

Have to push to origin in Github Desktop

So the plugin works fine, but on my PC when I do git commit through the plugin, it brings up GitHub desktop and makes me push origin manually, kinda defying the point of the plugin.

However, on my laptop, it automatically pushes and does not pop up with GitHub desktop. I don't know how its even possible, but I am getting two different results...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.