Skip to content

Permission not granted to write to folders #5737

@deadlyengineer

Description

@deadlyengineer

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

Git-2.50.1-64-bit

Windows version

Windows 11

Windows CPU architecture

x86_64 (64-bit)

Additional Windows version information

Microsoft Windows [Version 10.0.22631.2428]

Options set during installation

I used msi package, clicked next till I reach the end and finish installation.

Other interesting things

I installed old version of git Git-2.24.1.2-64-bit it works OK.

Terminal/shell

Bach OR CMD OR PowerShell, tried everything

Commands that trigger the issue

Any git command that writes to disk.

Expected behaviour

It should be successful.

Actual behaviour

git add . returns this

error: unable to write file
.git/objects/36/dd1796da4dcbb2f53005b64afeef698cfaf510: Permission denied
error: src/helpers/schedule.ts: failed to insert into database
error: unable to index file 'src/helpers/schedule.ts'

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