Git 2.13 conditional config on windows

前端 未结 5 1696
失恋的感觉
失恋的感觉 2020-12-28 15:23

Git version: 2.13.0.windows.1

OS: Windows 7

CLI: Git bash

.gitconfig



        
5条回答
  •  不思量自难忘°
    2020-12-28 15:56

    You need to turn off case sensitivity: change "gitdir:" to "gitdir/i:"

    [includeIf "gitdir/i:C:/Work/"]
    path = .gitconfig-work
    
    [includeIf "gitdir/i:C:/My/Dev/"]
    path = .gitconfig-my
    

    from:

    https://github.com/Microsoft/vscode/issues/62921#issuecomment-437693020

提交回复
热议问题