Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

The repository cannot be created in a folder on the server

NikVladi September 9, 2024

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?

Screenshot 2024-09-09 235129.png

 

1 answer

1 accepted

0 votes
Answer accepted
NikVladi September 9, 2024

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events