What is the reason for the /a /b prefixes of git diff

前端 未结 5 868
抹茶落季
抹茶落季 2020-12-23 13:34

I\'ve been using git for some years now and always wondered why git diff prefixes the names of modified files with a/ and b/. I expected to eventually stumble upon a use-cas

5条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-23 13:49

    If you want to add git diff --no-prefix to your .gitconfig manually, just add the following:

    [diff]
    noprefix = true
    

提交回复
热议问题