Kenoyer130 Kenoyer130 - 1 month ago 8
Git Question

Git have --no-prefix as the default?

We are using code collab and have to put the entry --no-prefix each time. Sometimes people forget and then they have to resubmit their code review. Is there a way to globally set the --no-prefix option so that the a/ b/ prefixes are never used?

Answer

Yep. Set the config option diff.noprefix:

$ git config --global diff.noprefix true    # All repos
$ git config diff.noprefix true             # Current repo