#6112·git-lfs

git 配置解析不一致

作者: mzr创建于 2025年9月12日更新于 2026年8月27日
标签buggit-config

Describe the bug

Due to maps being unordered in golang, git sometimes can choose wrong config as the so called "best candidate". (here)

Git docs explicitly lists in which order configs should be loaded:

The files are read in the order given above, with last value found taking precedence over values read earlier. When multiple values are taken then all values of a key from all files will be used.

内容来源: git-lfs/git-lfs