TortoiseGit,忽略行尾

标签 tortoisegit

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

最佳答案

  • 在该存储库中右键单击 TortoiseGit -> 设置
  • 关闭本地 AutoCrlf 并应用设置
    enter image description here


  • 额外引用

    阅读 Dealing with line endings - Per-repository settings ,

    然后尝试 Dealing with line endings - Refreshing a repository after changing line endings

    关于TortoiseGit,忽略行尾,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44852951/

    相关文章:

    Git GUI/TortoiseGit 没有调用正确使用 powershell 的 Hook ? ( window )

    git 推送错误 : HTTP request failed: The requested URL returned 504

    git - TortoiseGit 克隆的 SVN 仓库是空的

    c# - 查看 TortoiseGit 生成的 git 命令

    windows - 在添加的行中搜索 TODO 并将其显示为 Windows 上 TortoiseGit 中的默认提交消息

    git - 我应该如何将 Tortoisegit 与 LFS 一起使用?

    git - TortoiseGit 1.7.8 : "Couldn' t load this key"on "sync" or "pull"?

    git - 使用 Git 部署更改的文件

    icons - TortoiseGit:覆盖图标适用于文件夹,不适用于文件

    git - 从 TortoiseGit 中删除保存的凭据