Github Windows,整个文件在提交后显示更改. [英] Github windows, whole file shows change after commit.

查看:39
本文介绍了Github Windows,整个文件在提交后显示更改.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用github Windows应用程序.我似乎在显示什么已更改和未更改方面存在问题.在我提交之前,它只正确显示已更改的行,但是在提交之后,它表明文件中的所有行均已更改.有什么办法阻止它吗?

I am using the github windows app. I seem to be having problems with it showing what has changed and what hasn't. Before I commit it correctly shows only the changed lines, but after I commit, it shows that all the lines have changed in the file. Any way to get it to stop this?

这很烦人,我们将不胜感激. 附言,我确保他们没有行尾问题.

It is quite annoying and any help would be appreciated. ps, i made sure that their are no line ending issues.

推荐答案

这是常见的 core.autocrlf 问题(您的客户端中的设置不同,而Github客户端中的绝对错误)-请仔细阅读格式和空格"主题以及其中的 core.autocrlf 部分

This is usual core.autocrlf issue (different setting in your clients and definitely wrong in Github client) - read "Formatting and Whitespace" topic and core.autocrlf part of it carefully

PS :您可以使用different来测试我的语句,该语句可以忽略比较文件中的EOL差异

PS: you can test my statement using differ, which can ignore EOL-difference in compared files

这篇关于Github Windows,整个文件在提交后显示更改.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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