我的文件在远程 Ubuntu Linux 服务器上。当我下载文件并在 WinSCP 文本编辑器或 Notepad++ 中编辑它时,文件行尾样式更改为 Windows。因此,当我将文件重新保存回 Ubuntu 时,行已关闭,SVN Diff 认为每一行都已更改。
仅供引用,我通过双击 WinSCP 中的文件来编辑文件。该程序在编辑器中启动文件。每次保存时,文件都会自动复制回 Linux 服务器。
如何防止行尾样式问题?
最佳答案
是否this thread帮助?更准确地说,这部分:
From this, it seems to me that you have forced WinSCP to use text mode transfer, which imply the unix->dos conversion. Just force the binary mode to avoid the conversion.
关于linux - 使用 SVN Diff 时在 Ubuntu Linux 上使用行尾样式的 WinSCP 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1967361/