Obsidian Git - Plugin for automatic vault backup with git

Please add input form for user text during commit, if commit manual. Now git history useless because contain automatic messages only.

I would like have option to write my own descriptions for commits.

Hey, I’ve noticed that on Windows this plugin syncs literally in milliseconds. However, on MacOS it can take up to two minutes to complete.

I’m very new to git, and coding in general. I was hoping someone would be able to explain why? And if there’s a why, is there a fix?

One of the things I’ve noticed when creating a backup (Open Command Palette – Obsidian Git: Create Backup) is it seems to hang and I just have the message in the lower right corner saying “git: pushing changes”.

Obsidian

No issue from command line, just wanted to better understand how to do it within Obsidian if at all possible.

What does the console say at this point? Press CTRL SHIFT I on Windows, CTRL OPTION I on Mac.

Hi, help please:
My .git folder is not the same as my vault folder (.git in the subfolder).
Plugin not detected the git-repository. How I can specify search .git in my subfolder?
Selection_064

Hello I was wondering if I can get some guidance on a macOS. I watched the Effective Remote Work and Bryan Jenks tutorials and decided that the Obsidian Git plugin would be the best git solution for someone who isn’t particular about their setup. I followed this tutorial which made me do a git init on my existing vault and also push everything onto my GitHub account repository. The plugin however didn’t do any automatic backups like I hoped it would. It seems the problem is that I didn’t cache my credentials. I thought I could do this from the command line by adding the remote again from the terminal then pushing to my GitHub account and adding the line of code about caching credentials before the push. I ran into the problem of not being able to add the remote a second time. I thought instead I could download the GitHub cli and running gh auth login. That executed fine but despite all this I do not have the automatic backups I hoped for and I get the same error messages from the Obsidian app that the automatic backup was fatal because something about credentials

1 Like

Hi. Replying to myself to announce that installing the GitHub cli and using that for authentication solved all my problems

2 Likes

Just a heads up for anyone using this.

This issue has made the plugin unusable for me. It locks up Obsidian at the interval you have set for the backup.

In the meantime, I’m manually running the commands.

This sounds promising! My key question (and the reason I’m here) is this: Does it support icons in filenames? (I suspect it does. I seem to recall someone mentioning it in the Dropbox forum.)

My other question is, Will it automatically sync with another connected computer? I use Dropbox that way. It gives me a backup on the cloud, and one on a local computer that is always up to date and ready to be accessed on a moment’s notice.

I could be argued out of that strategy, maybe, but it protects me from network outages and server problems, so I’m rather fond of it.

At the same time, I’m very fond of icons in filenames! They’re visually obvious type-indicators that sort together. (Fortunately, I found out that Dropbox doesn’t handle them relatively quickly–before I had HUNDREDS of notes that didn’t sync…)

1 Like

I’ve had the same issue with Dropbox and icons in file names. Does Git handle them?

Tried doing this - when publishing about 65% through this message pops up,

“The remote disconnected. Check your Internet connection and try again.”

Anyone know how to fix this?

Can I use this as a backup instead of sync feature? I use iCloud already so I would just keep pushing the files. I setup git on windows and mac pcs. However I get an error saying 'failed to push some refs to [my repo].
image

Can’t get this to work. Installed GitHub, then the plugin. I am not a developer, but I’m not an idiot either.

Is there any chance someone has put together a tutorial for using this plugin that’s actually useful to people who are not developers? Or are we not aiming for mass adoption?

1 Like

This guide looks quite good

As well as installing Github desktop you need to actually create the Git repository. This is described in the link.

2 Likes

does this work on iPhone?

UnknownTransportError when using command palate > git pull in android ,
how can i fix this ?

To my knowledge, Obsidian Git still uses the HTTPS protocol. You are trying to use SSH. Switch to HTTPS.

But i use ssh in my windows machine normally , i use ssh when i create my repo so i don’t know if i can’t use HHTTPS in my mobile

You can’t use SSH on mobile with the Obsidian Git plugin. It may work with Windows because you must have used GitHub Desktop to create/clone your repo.

Further reading (it’s for iOS though):

I don’t have much experience with the MGit app on Android, but it’s free and looks okay, by the way.

1 Like

It is not working anymore