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

本文介绍了一种针对博客迁移的配置方法,特别关注于如何通过.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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值