Commit files with no differences
已回答
When I go to commit changes using Git IntelliJ shows a large number of files have changed but when I select the file "No differences" and "Contents are identical" are shown under the Diff frame. I suspect this has something to do with line endings. Is there a way to tell IntelliJ to ignore this?
请先登录再写评论。
If git status list the files as modified, it is not possible to remove them from the Local changes, and list of changes to commit, unfortunately.
However, if it is line ending difference and you have you have core.autocrlf configured correctly, on commit line endings will be normalized and no changes will be committed.
As a workaround, calling GIt - Add on the files could be used - line endings are converted on an addition to the staging area.
in my case, where I am recreating files with same content,
solves the problem