1
我想提供和只提交相關的更改。git只添加非空白變化
在我的.gitconfig
我丟棄了core.autocrlf = input
一行以跳過行結束轉換。
現在我不知道爲什麼,但我行尾仍在轉換
已經籤類似的解決方案給予但沒有任何工程。 我只想提交非空白變化。
我試圖
git add myfile
git diff HEAD
--- /dev/null
+++ b/profiles/minimal/minimal.info
@@ -0,0 +1,6 @@
...content of file here (practically all is changed)
現在刪除空白
git diff HEAD -w | git apply --cached --ignore-whitespace
,我得到一個錯誤
error: myfile: already exists in index