解决 linux 中使用Git操作windowns内项目有大量修改 (回车、换行) .gitattributes

# THIS IS ONLY FOR THE gitattributes REPOSITORY.

# Handle line endings automatically for files detected as text

# and leave all files detected as binary untouched.

* text=auto

#

# The above will handle all files NOT found below

#

# These files are text and should be normalized (Convert crlf => lf)

*.gitattributes text

.gitignore text

*.md text

#

# Exclude files from exporting

#

.gitattributes export-ignore

.gitignore export-ignore

猜你喜欢

转载自blog.csdn.net/lxmuyu/article/details/114690561