沙哑的预加入钩子施加了所有CRLF线路变化
在Windows 10上,IDE是Visual Studio代码,
我正在使用用于工作的TS.ED节点环境。我们有一个最初用LF线路断开的存储库。作为Windows用户,我的IDE将所有文件转换为CRLF。如果我想保持一致,我必须手动将所有文件转换为LF。
我们使用上述设置的存储库之一是由于此沙哑的错误(如堆栈溢出中所示。在按照堆栈溢出链接中的说明进行修复之后,它最终使我可以提交我的工作,但是它几乎提交了系统中的所有其他文件 但由于LF-&GT的变化而决定在Git中进行git。
我没有触摸,
On Windows 10, IDE is Visual Studio Code
I am working with a Ts.Ed node environment for work. We have a repository that is originally written with LF line breaks. As a Windows user, my IDE converts all of my files to CRLF. I have to manually convert all files to LF if I want to keep consistent.
One of our repositories with the above setting is not allowing me to commit because of this Husky error (as displayed here in Stack Overflow. After following the instructions in the Stack Overflow link to fix it, it finally lets me commit my work, however it commits almost every other file in the system that I haven't touched but have decided to commit itself in git because of the LF-> CRLF change.
Is there a way I can prevent this from happening without having to manually convert all files to LF?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论