Kenoyer130 Kenoyer130 - 1 year ago 77
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 Source

Yep. Set the config option diff.noprefix:

$ git config --global diff.noprefix true    # All repos
$ git config diff.noprefix true             # Current repo
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download