obsidian-git: [Bug]: error: no such remote 'main'

Describe the bug

I created a new vault and new GitHub repo.

  • I ran “Obsidian Git: Initialize a new repo”
  • I ran “Obsidian Git: Push”
    • In the text box “Select or create a new remote by typing its name and selecting it” I typed “main” to create a new remote named “main”
    • I got the error “error: No such remote 'main'”

How do I create a new remote?

Relevant errors (if available) from notifications or console (CTRL+SHIFT+I)

git obsidian error: error: No such remote 'main'

Steps to reproduce

  • Create new vault
  • Install “Obsidian Git”
  • Run Obsidian Git: Initialize a new repo
  • Run Obsidian Git: Push
  • Type main into the text box

Expected Behavior

Create a new remote named ‘main’

Addition context

I have also tried the names: remote and master This isn’t really a “bug report” but there aren’t any other issue templates

Operating system

Windows

Installation Method

None

Plugin version

2.22.0

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 20 (4 by maintainers)

Commits related to this issue

Most upvoted comments

@siothelibrarian You might try the commands from ifacodess for now. Your shared config seems to be the global one and not the in your git repository under <repo>/.git/config