Skip to content

git-cmd.exe | git-bash.exe seems unable to write anything to my disk. #5695

Open
@edwinscode

Description

@edwinscode

Existing issues matching what you're seeing

  • I was not able to find an open or closed issue matching what I'm seeing

Git for Windows version

D:\Dev\test>git version --build-options
23:54:12.347713 exec-cmd.c:266          trace: resolved executable dir: D:/Program Files/Git/PortableGit/mingw64/bin
23:54:12.347713 git.c:476               trace: built-in: git version --build-options
git version 2.50.0.windows.1
cpu: x86_64
built from commit: 311e67dc2479debe725dfb9a3f974bdce04644ea
sizeof-long: 4
sizeof-size_t: 8
shell-path: D:/git-sdk-64-build-installers/usr/bin/sh
feature: fsmonitor--daemon
libcurl: 8.14.1
OpenSSL: OpenSSL 3.2.4 11 Feb 2025
zlib: 1.3.1
SHA-1: SHA1_DC
SHA-256: SHA256_BLK

Windows version

Other

Windows CPU architecture

x86_64 (64-bit)

Additional Windows version information

C:\Users\Administrator>ver

Microsoft Windows [Version 10.0.14393]

Options set during installation

i use PortableGit-2.50.0-64-bit.7z.exe, no installation is needed, i assume.

Other interesting things

my env/setting:

  • os: Microsof Windows Server 2016 (running under esxi 6.7)
  • using local Administrator account
  • not using network drive nor symbolic link
  • no permission issue on the driver or folder; (full control is given by default)
  • no speical config on local group policy nor disabling some Windows default services (except windows udpate);
  • git: PortableGit-2.50.0-64-bit.7z.exe

the git-bash.exe can touch file & write value into it.
but almost every other fucntions of git-cmd.exe | git-bash.exe that reuqired writing is not working.
Image

and it does create .git under the directory, and it won't be able to push / commit.
Image

the os is very clean, almost nothing is installed:
Image

I try asking Copilot & Gemini

obviously, AI can't help me out of this after few days trying.

please don't tell me to reinstall os, i know the git can works in my other VM like windows 10.

Terminal/shell

git-cmd.exe | git-bash.exe

Commands that trigger the issue

git init

Expected behaviour

no error should be occured.

Actual behaviour

D:\Program Files\Git\PortableGit>cd D:\Dev\test

D:\Dev\test>git init
23:54:05.769562 exec-cmd.c:266 trace: resolved executable dir: D:/Program Files/Git/PortableGit/mingw64/bin
23:54:05.769562 git.c:476 trace: built-in: git init
error: could not write config file D:/Dev/test/.git/config: Function not implemented
fatal: could not set 'core.repositoryformatversion' to '0'

Image

Repository

No response

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