避免在Windows中使用的git仓库复制到Linux下出现^M换行,导致git status的时候曝红色
避免在Windows中使用的git仓库复制到Linux下出现^M换行,导致git status的时候曝红色可以执行如下操作说明:在git仓库中新建一个.gitattributes文件,然后写入如下内容:# Set the default behavior, in case people don't have core.autocrlf set.* text=auto# Explicitly declare text files you want to always be normalized a
原创
2022-03-26 19:05:27 ·
1101 阅读 ·
0 评论