Git says “Binary files a… and b… differ” on for *.reg files

后端 未结 4 1615
刺人心
刺人心 2021-02-19 14:47

Is there a way to force Git in to treating .reg files as text? I am using Git to track my windows registry tweaks and Windows uses .reg for these files

4条回答
  •  Happy的楠姐
    2021-02-19 15:02

    To tell git to explicitly diff a filetype, put the following in a .gitattributes file in your repository’s root directory:

    *.reg diff
    

提交回复
热议问题