Skip to content

GIT: Global safe directory config

Update GIT global/system gitconfig to enable access to repository across Windows user accounts

Problem

Due to directory/folder permission issues GIT can throw the following error:

fatal: detected dubious ownership in repository

Fix

Following GIT installation for Windows:

Open global/system gitconfig: C:\Program Files\Git\etc\gitconfig

Add:

[safe]
   directory = {repository-base-directory}

e.g.

[safe]
   directory = D:/TicketSource