OK. To try and help here i’ve created a test vault and installed the obsidian-git plugin. When I change the welcome note to add a new line and then run “git status” i get this:
carolinemathieson@MacBookPro Test % git status
On branch main
No commits yet
Untracked files:
(use “git add …” to include in what will be committed)
.DS_Store
.obsidian/
Welcome.md
nothing added to commit but untracked files present (use “git add” to track)
Which is what i would expect to see.
Then i closed down obsidian.
When i moved the “.git” directory onto my desktop and created a file called".git" with the path to that directory on the desktop, Obsidian then complained about there not being a valid repository.
This is without changing any of the settings in the plugin. I then changed the repository path in the setings and reloaded obsidian. But it didn’t like either the new path or file. Tried removing the file but leaving the directory in place and no difference.
My first thought is that this may not be possible. It may be the seting isnt quite right but someone who knows the git plugin would be able to give better advice.
I didn’t feel like trying any further experiments.