4

即使我没有更改其中一个文件中的任何内容,我在修改文件列表中使用> git status.

当我使用 看到该文件时> git diff,它显示所有行都已删除并添加了所有行(相同),但是当我使用 时> git diff --ignore-space-change,git 没有显示任何更改。

我确信它与 相关end of line,但奇怪的是我没有对所有文件都出现这种行为..!而且,所有开发人员都在使用 Windows。

end of line white spaces 现在,我想以某种方式告诉 git,以便在我执行git pullor时不会考虑它git diff

我的 Git 属性

# Auto detect text files and perform LF normalization
* text=auto

我的 Git 配置

core.symlinks=false
core.autocrlf=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
pack.packsizelimit=2g
help.format=html
http.sslcainfo=/bin/curl-ca-bundle.crt
sendemail.smtpserver=/bin/msmtp.exe
diff.astextplain.textconv=astextplain
rebase.autosquash=true
user.name=XXX
user.email=XXX@gmail.com
core.autocrlf=true
core.crlf=true
colors.ui=true
auto.crlf=true
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true
core.hidedotfiles=dotGitOnly
core.crlf=true

请帮我。

4

0 回答 0