Is there any way to compare two files in Git without their formatting changes?
问题 I have committed some code with some format but the origin has some other format. The reviewer is asking me to revert all my changes and I am searching for some UI tool or some way in Git to remove formatting and give the actual result. 回答1: I think you might have a look at git diff, in particular the two following options: -b, --ignore-space-change Ignore changes in amount of whitespace. This ignores whitespace at line end, and considers all other sequences of one or more whitespace