0
我繼續得到這些討厭的^M
插入符號出現git diff
。請注意,這些文件存儲在Linux上,但是通過Windows使用Samba共享網絡進行編輯。試圖擺脫他們,我執行每git-diff to ignore ^M如下:反向混帳配置命令
[[email protected] .git]$ git config --global core.whitespace cr-at-eol
雖然^M
不再顯示,更糟的是git diff
仍顯示線爲不同的,但文字是兩條線相同因爲^M
不再顯示。如何反轉core.whitespace cr-at-eol
?我想我能看到git的配置文件中的變化,但不是這種情況。
[[email protected] .git]$ cat config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = [email protected]:root/projextx.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master