The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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.

TAGS
AUG Leaders

Atlassian Community Events