I had the problem:

11index.html:2302 Uncaught (in promise) Error: Error: spawn git ENOENT
   at Process.ChildProcess._handle.onexit (internal/child_process.js:267)
   at onErrorNT (internal/child_process.js:469)
   at processTicksAndRejections (internal/process/task_queues.js:84)
   at GitExecutorChain.onFatalException (eval at <anonymous> (app.js:1), <anonymous>:2302:85)
   at GitExecutorChain.eval (eval at <anonymous> (app.js:1), <anonymous>:2293:28)
   at Generator.throw (<anonymous>)
   at rejected (eval at <anonymous> (app.js:1), <anonymous>:2247:65)
DevTools failed to load SourceMap: Could not parse content for app://obsidian.md/main.js.map: Unexpected end of JSON input

and

VM392:131 Uncaught (in promise) Error: Error: spawn git ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:267)
    at onErrorNT (internal/child_process.js:469)
    at processTicksAndRejections (internal/process/task_queues.js:84)
    at GitExecutorChain.onFatalException (eval at <anonymous> (app.js:1), <anonymous>:2302:85)
    at GitExecutorChain.eval (eval at <anonymous> (app.js:1), <anonymous>:2293:28)
    at Generator.throw (<anonymous>)
    at rejected (eval at <anonymous> (app.js:1), <anonymous>:2247:65)

After installing Git client.
And input the environment variables to System path
Then the plugin work ok.

Already did both :confused: thanks !

Did you restart your computer after these 2 steps?

Yes still have workspace sync issue after reboot.

Then i dont know…

So you have obsidian git, git client, and the git hub repository set up but you’re experiencing conflicts when pushing changes from your local vault to your remote repository? I may need to update the initial forum post to add the .gitignore file. What does your remote repository look like on Github right now? Is it possible to display an image of that in this thread?

I have stash my git folder on my second computer. It works so far…

Thanks

I got the same problem without the setting option.

Have you tried restarting Obsidian? That usually works for me.

I’v tried that, but it didn’t work. Thanks for your suggestion and I will try later again.

Try open developer console (ctrl + shift + i). See if your problem is the same.
If it is the same, then you need to install git client and add environment variables to system path

The problem appear again :confused:

git-error.js:31 Uncaught (in promise) Error: error: Your local changes to the following 
files would be overwritten by merge:
.obsidian/workspace
Please commit your changes or stash them before you merge.
Aborting

at GitExecutorChain.onFatalException (eval at evalFunc (app.js:1), <anonymous>:2302:85)
at GitExecutorChain.eval (eval at evalFunc (app.js:1), <anonymous>:2293:28)
at Generator.throw (<anonymous>)
at rejected (eval at evalFunc (app.js:1), <anonymous>:2247:65)

When pull changes to my computer 2.

My repository :

When you’re committing your changes are you using the obsidian git plugin or are you using git bash? You should be committing and pushing using the obsidian git plugin. It looks like you’re manually committing and pushing which may be why you’re running into issues?

How to do steps 9 and 10.
I am not able to find any toggles for switching it off after plugin is installed

Only the plugin :confused:

After you install the plugin. You should be able to access it in the “community plugins” section of your settings. You must turn the plugin on before you have access to “disable push.” Once you enable the Obsidian git plugin from the “community plugins” section it should pop up in the “plugin options” section of your settings. There you should find all the different things you can enable/disable.

Try asking in the discord. Im not sure how to best help you!

Thanks for trying :+1:

1 Like

@Samuo, Thank you for the detailed instructions.

Despite the fact that I use a Mac, I was able to translate a couple of commands and still follow your instructions to the letter – except I sync Obsidian (so I put the git folder in the Vault which resides in iCloud).

The only problem is, when I hit the “Commit all changes and push to remote repository” option, I keep getting a xcrun error.

I got the same error a week ago when I first installed Obsidian Git and tried to enable it. I uninstalled and reinstalled a number of times – both on the Mac and iOS app, but still got the same error.

I have checked my GitHub repo, after installing your way, and there’s just the one readme file that was created when I set it up.

Any thoughts on what I can do? Many thanks in advance.

Hi, after following all of the step, when I open my vault this message comes up. Not sure what do to or if anyone has a solution. Thanks!

Obsidian_bxasiIwb4m