How to configure unified diff context via git-config?

718 Views Asked by At

How can I configure via git-config the unified context so that I don't have to always provide the -U or --unified option with a value?

1

There are 1 best solutions below

3
On BEST ANSWER
git config --global diff.context <value>

will set it to show <value> lines of context in any repo you work with.