Looking for help with Git for Windows and using $XDG_CONFIG_HOME #5987
rjfmachado
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Per https://git-scm.com/docs/git-config#FILES, git should be able to use $XDG_CONFIG_HOME/git/config to look for the .gitconfig file.
I'm seeting XDG_CONFIG_HOME to $HOME\dev\configuration.config on Windows 11 and getting an access error as git seems to use forward slashes when appending the file's location. Powershell and nushell have no issues accessing .gitconfig in that location.
Has anyone tried this before?
❯ git config
warning: unable to access 'C:\Users\r_mac\dev\configuration.config/git/config': Permission denied
error: no action specified
❯ ls C:\Users\r_mac\dev\configuration.config/git/config
Mode LastWriteTime Length Name
-a--- 05/12/2025 14:08 312 .gitconfig
Beta Was this translation helpful? Give feedback.
All reactions