TortoiseGit,忽略行尾 [英] TortoiseGit, ignore line endings

查看:71
本文介绍了TortoiseGit,忽略行尾的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种方法来防止 TortoiseGit 在文件具有 Unix 行结尾时将文件标记为已更改.当您通过 FTP 下载文件夹时,很难检查远程文件是否已更改,由于 LF 版本下降,它们经常显示为已更改.我在 Windows 上,repos 是 CRLF,但正如我所说,当它们在服务器上更改时,它们最终变为 LF.

I am looking for a way to prevent TortoiseGit from flagging files as changed when they have Unix line endings. It is just tough to check if remote files have changed when you FTP download a folder, they show up as changed often because of the LF version that comes down. I'm on Windows, the repos are CRLF, but as I said when they change on the server they end up as LF.

推荐答案

  1. 在该存储库中右键单击 TortoiseGit -> 设置
  2. 关闭本地 AutoCrlf 并应用设置

<小时>

额外参考


Extra ref.

阅读 处理行尾 - 每个存储库设置

然后尝试 处理行尾 - 更改行尾后刷新存储库

这篇关于TortoiseGit,忽略行尾的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆