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

Git is not ready!

Open JacksonNiu616 opened this issue 1 year ago • 32 comments

image my git can work in other app, How can i get it ready for obsidian? thanks!

JacksonNiu616 avatar Sep 17 '22 16:09 JacksonNiu616

There should be a notification when starting Obsidian, which gives you more details why it's not ready.

Vinzent03 avatar Sep 18 '22 13:09 Vinzent03

I am having the same issue, even though the vault opened is cloned from my repo. This is what it shows me when I start Obsidian - Screenshot_2022_09_21_17_49_16_08_51606159b24eff83e24a54116878fe3e

driftywinds avatar Sep 21 '22 12:09 driftywinds

@driftywinds Can you verify in you file viewer or terminal that a .git directory exists at the root of you obsidian vault? And try clearing the base path setting.

Vinzent03 avatar Sep 21 '22 13:09 Vinzent03

@driftywinds Can you verify in you file viewer or terminal that a .git directory exists at the root of you obsidian vault? And try clearing the base path setting.

yes there is a .git directory at the root of my vault and the base path setting is cleared. It still gives me the same error

driftywinds avatar Sep 21 '22 13:09 driftywinds

Same problem. There was no notification when starting Obsidian. There is a .git directory. What does "clearing the base path setting" refer to?

mathewlowry avatar Sep 29 '22 11:09 mathewlowry

@mathewlowry There is a base path setting, which may cause this issue. Is there any error in the console? (CTRL + SHIFT + I)

Vinzent03 avatar Sep 29 '22 12:09 Vinzent03

+1 working well on a machine but "git is not ready" on another one with the same remote repo. No visible error in the console.

AlainRo avatar Oct 02 '22 09:10 AlainRo

Hi, The instructions I was following were to install GitHub Desktop, but that turned out to be a mistake. I installed Git, messed about for a while with the guys behind massive.wiki, and got it working. Not exactly a simple install process, tho - will document it at some point, but for now hope this helps.

mathewlowry avatar Oct 02 '22 10:10 mathewlowry

I found an error message : Capture d’écran 2022-10-02 à 12 28 54

AlainRo avatar Oct 02 '22 10:10 AlainRo

@AlainRo See #67

Vinzent03 avatar Oct 02 '22 10:10 Vinzent03

Problem solved after : xcode-select --install 👍 Thank you for this plugin

AlainRo avatar Oct 02 '22 10:10 AlainRo

When I start Obsidian, I got a notification "Cannot run git command". Similarly, the console of "Ctrl + Shift + I" report the same error ( I use Win11 OS, and my git support the "3rd-party command" )

Evan-Tian avatar Oct 06 '22 14:10 Evan-Tian

@CupidTian That's strange, maybe git is installed in an unusual location that's not in the PATH env var of Obsidian?

Vinzent03 avatar Oct 22 '22 13:10 Vinzent03

When I start Obsidian, I got a notification "Cannot run git command". Similarly, the console of "Ctrl + Shift + I" report the same error ( I use Win11 OS, and my git support the "3rd-party command" )

@Vinzent03 I have the same issue. image

@CupidTian That's strange, maybe git is installed in an unusual location that's not in the PATH env var of Obsidian?

I added /usr/bin/git (the standard path for git) explicitly but it didn't help.

I use Ubuntu 22.04.1.

marcluque avatar Nov 09 '22 13:11 marcluque

@marcluque how did you install Obsidian?

Vinzent03 avatar Nov 10 '22 16:11 Vinzent03

@marcluque how did you install Obsidian?

With snap

marcluque avatar Nov 10 '22 19:11 marcluque

@marcluque Snap is not reported as stated in the README

Vinzent03 avatar Nov 10 '22 22:11 Vinzent03

@marcluque Snap is not reported as stated in the README

Ouh I see, thank you, Flatpak works!

marcluque avatar Nov 11 '22 12:11 marcluque

Excuse me, I meet same problem as marcluque in windows11. How can I slove this?

lemonway64 avatar Dec 07 '22 06:12 lemonway64

How did you install Obsidian @lemonway64?

marcluque avatar Dec 07 '22 12:12 marcluque

How did you install Obsidian @lemonway64?

I just download through the official site with windows 11

lemonway64 avatar Dec 08 '22 05:12 lemonway64

Excuse me. I meet the same problem in windows10. how can i slove this.? obsidian v1.1.8 . i added git install path to the Path variables. image

charlesNeedFocus avatar Dec 23 '22 17:12 charlesNeedFocus

Excuse me. I meet the same problem in windows10. how can i slove this.? obsidian v1.1.8 . i added git install path to the Path variables. image

ok,i put the whole path in the Git binary path: C:\Program Files\Git\bin\git.exe . and it works ! ! !

charlesNeedFocus avatar Dec 23 '22 17:12 charlesNeedFocus

exactly. need to download this:

https://git-scm.com/

lemonway64 avatar Dec 24 '22 06:12 lemonway64

I use GitHubDesktop and windows 10, I put the whole path in the Git binary path c:\Users....your_name.....\AppData\Local\GitHubDesktop\app-3.1.2\resources\app\git\cmd\git.exe

oneegin avatar Jan 01 '23 13:01 oneegin

My obsidian says "Git is not ready. When all setting are correct you can configure auto backup, etc. I dont get any notificatons and I have everything set-up like in the tutorial by Danny Talks Tech. Is there something I need to turn on or check to find where I made a mistake?

talismangit avatar Jan 08 '23 14:01 talismangit

@talismangit Is there any error in the console (CTRL + SHIFT + I)? You should get a notification what exactly is wrong.

Vinzent03 avatar Jan 10 '23 20:01 Vinzent03

I had the same issue and tried all siad on https://github.com/denolehov/obsidian-git/issues/405 and reisntall/update git, and downgrade obsidian-git but ALL didn't work.

It just backed to work when my Windows 10 laptop rebooted.

Chang-Hoon avatar Jan 30 '23 00:01 Chang-Hoon

Having the same issue on startup it says cannot run git command while I have it in the standard location /usr/bin/git

bsridatta avatar Jan 30 '23 12:01 bsridatta

windows 10, I put the whole path in the Git binary path

I only works with this path : C:\Program Files\Git\cmd\git.exe. just for note

Harvey-myc avatar Feb 22 '23 06:02 Harvey-myc