How to configure unified diff context via git-config?

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?

  • How do I identify & list unique hunks in a git commit?
  • One Solution collect form web for “How to configure unified diff context via git-config?”

    git config --global diff.context <value>
    

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

    Git Baby is a git and github fan, let's start git clone.