I'm new to Git and Sourcetree.
I have a server. It has a folder called Scripts.
The network path is \\MyServer\Scripts. I'm trying to create a local repository in this folder and an error appears (screenshot). If I try to create a local repository, for example, here \\MyServer\Scripts\OtherFolder, then everything works fine.
I don't understand why this is happening. I need to create a repository specifically in the \\MyServer\Scripts folder. What's going on? What should I do?
Installed GitHub Desktop.
When trying to create a repository there was a "trust..." button or something like that. And everything worked fine.
With Sourcetree I found a workaround. Created a repository in \\MyServer\Scripts\Scripts. Then moved it to \\MyServer\Scripts. Deleted the \\MyServer\Scripts\Scripts folder.
Tried to open the repository in \\MyServer\Scripts a new error appeared related to the folder owner.
Run this command:
C:\Users\UserName\AppData\Local\Atlassian\SourceTree\git_local\git-cmd.exe
git config --global --add safe.directory //MyServer/Scripts/
And everything worked.
I think you need to create a trust mechanism like in GitHub Desktop.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.