My team is trialling the use of Sharepoint Online and Teams to replace a public network drive for our docs and work files. I'm running into a problem when trying to use git: creating the repo with git init
works, but adding and committing files fails with an error:
fatal: cannot use .git/info/exclude as an exclude file
The repo in question is a very simple one, just 4 small files in a directory a couple of levels down from the root.
Are there known problems with using git on a shared document library, mapped as a network drive? I had a look at the list of limitations, and it doesn't seem like there should be problems.
At a previous job I had git repos in my OneDrive for Business, and it mostly worked fine (although I ran into intermittent sync glitches).
.git
directory does seem to be created correctly; I can see it both in Explorer and in the SPO docs library in the browser. The.git/info/exclude
file is there as well