K
K
krll-k2014-10-26 14:17:04
git
krll-k, 2014-10-26 14:17:04

How to compare two files with the git diff utility without taking into account tabs and spices?

341a5aeee54845789c1d09a8b4cc7e8a.png

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Andrey, 2014-10-31
@krll-k

The easiest option:
$ git diff -b

J
jcmvbkbc, 2014-10-26
@jcmvbkbc

How to compare two files with the git diff utility without taking into account tabs and spices?

Depends on how much the spices affect the perception of the diff.

V
Vladimir, 2014-10-26
@rostel

$ git config --global core.whitespace \
     trailing-space,space-before-tab,indent-with-non-tab

Git configuration

K
krll-k, 2014-10-26
@krll-k

70d00d5f97e74010888dcad1d0b0df97.png
--ignore-space-at-eol
-b, --ignore-space-change
-w, --ignore-all-space

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question