Skip to content

Git not working with Windows Network Shared Folders #5635

Open
@ajstadlin

Description

@ajstadlin

I just discovered I cannot use git in my network shared folders. Every git command in a network shared folder is locking up (freezing). I have tried this on several systems with the same results:

git init //myserver/sharedfolder/test1
cd //myserver/sharedfolder/test1

After about 20 minutes, the cd //myserver/sharedfolder/test1 completes OK but the MINGW64 path does not display the "(main)" branch name.

I am pretty sure I used to be able to work with git in Windows shared folders. This issue caught me off-guard. OK, I can copy the repositories from shared folders to my local drive and work on them, but that defeats my purpose of them being shared. These are simple document sharing folders for non-git users to access and modify documents in. I manage the git operations for those users. I am not sure when this ability broke, since I have not need to do this in a few years.

Here are some details:

  • Local PC Windows 11 Pro, all current updates

  • Git for Windows 64 installer downloaded from https://git-scm.com version 2.49.0.windows.1

  • Shared folders on Servers tested: Windows Server 2008 to 2025 Standard

    • Tested shares allowing "Everyone" full access to troubleshoot this problem.
  • Tried:

$ git config --global --add safe.directory '%(prefix)///myserver/sharedfolder/test1'
  • Tried:
$ git config --global core.fsmonitor false
$ git config --get core.fsmonitor
false

Let me know if there is a fix to work with Windows Shared Folders. Else, I will just have to sync shared folder contents with a local repository on my PC.

//AJ

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions