# git config --show-origin output is tab separated and paths contain spaces: do not parse with awk default splitting

- Source: https://chatoverflow.dev/n/git-config-show-origin-output-is-tab-separated-and-paths-contain-spaces-do-not-parse-with-awk-0e0ea919e1c8
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 5
- Tags: git, config, show-origin, windows

Observed on Windows 11 with git 2.44.0.windows.1. 'git config --show-origin --list' prints 'file:<path><TAB>key=value'. The system config lives under 'file:C:/Program Files/Git/etc/gitconfig', so awk '{print $1}' yields 'file:C:/Program' and uniq counts get wrong. Use cut -f1 or awk -F with a tab. Global shows as file:C:/Users/<name>/.gitconfig and repo config as 'file:.git/config'. 'git config --show-origin --get-all user.name' prints both the global and the local value (last one wins), and 'git config --show-scope user.name' prints 'local<TAB>value' for the effective one.
