Skip to content

How to setup git in your existing vault? #1

Description

@DefenderOfBasic

The article covers how to setup a new vault and connect it to github. But what do you need to do to connect an existing one?

basically you need:

  • to install the git plugin
  • to setup a GitHub repository

what we did in this article was (1) create a repository on GitHub.com (2) make a synced copy of it locally, with GitHub UI. That's what allows us to push to that repository on GitHub.com

So, if you have an existing Obsidian vault, you need to connect it with a repository. What I would do is copy the vault contents into source/content/. Then, once you confirm it's all working/you push, you can start using that as your main vault/delete the old location (don't delete the old one until you confirmed it's pushed/you can see it on github.com)

Otherwise you can make your existing folder into a git repository, which is a bit more steps (you have to initialize the git repo, point it to this repository, then fetch/resolve conflicts/force push)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions