obsidian-git icon indicating copy to clipboard operation
obsidian-git copied to clipboard

[Bug]: Can't push on windows 10

Open RomainBitard opened this issue 1 year ago • 5 comments

Describe the bug

I set up the plugin but I can't push on the remote branch. With a command line I can though (both cmd.exe and git bash)

Do you know how to solve this ?

BUG

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

Cf bug.png

Steps to reproduce

Install the plugin and git on windows and try to push a new change

Expected Behavior

No response

Addition context

No response

Operating system

Windows

Installation Method

None

Plugin version

latest

RomainBitard avatar Jul 16 '23 20:07 RomainBitard

Did you follow the documentation?

Vinzent03 avatar Jul 16 '23 21:07 Vinzent03

Yeah

On Sun, 16 Jul 2023, 23:32 Vinzent, @.***> wrote:

Did you follow the documentation https://publish.obsidian.md/git-doc/Authentication#HTTPS?

— Reply to this email directly, view it on GitHub https://github.com/denolehov/obsidian-git/issues/561#issuecomment-1637194719, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADKQOCXVVDPC5FFXBNPYLADXQRMX5ANCNFSM6AAAAAA2ME37XQ . You are receiving this because you authored the thread.Message ID: @.***>

RomainBitard avatar Jul 16 '23 21:07 RomainBitard

Reading the documentation I don't see where this is a supported feature on Windows. That said, git bash is a set of libraries written on top of Windows (reminds me of cygwin really) and you might be able to just setup some of those in your path and see if that works.

mike2ykme avatar Jul 18 '23 03:07 mike2ykme

Reading the documentation I don't see where this is a supported feature on Windows. That said, git bash is a set of libraries written on top of Windows (reminds me of cygwin really) and you might be able to just setup some of those in your path and see if that works.

Thanks for the reply, I said cmd.exe and git bash I know that git bash isn't mentioned on the documentation but I wondered if it was useful information

RomainBitard avatar Jul 18 '23 07:07 RomainBitard

So I had the same issue and I did two things which got it solved (not sure which one is the actual solution, maybe both):

  1. Make sure the SSH key is named id_[xxx] (not sure if that is actually important).
  2. Follow these instructions to make sure ssh-agent starts for bash.

Hopefully this helps! Maybe try (2) first, I think that's the actual solution.

tomfluff avatar Jul 19 '23 23:07 tomfluff