Is it possible to make –word-diff default in git diff, git gui, gitk

Is it possible to set an option that git diff is always using --word-diff=color whenever displaying diffs?

I know that there are command line arguments for gitk, git-gui and git diff, but are there config options I can set globally?

  • Hard removal of git tags
  • MIME type of a git repository?
  • Should you recreate containers when deploying web app?
  • How can I cleanly handle complicated repository interdependency?
  • Fix msysGit Portable $HOME location
  • Preventing user from changing .gitignore file?
  • I found that this works for git-gui:
    Adding this to .gitconfig works for guid

        diffopts = --word-diff --color-words

    But using this, I can not actually pick anything anymore. I get “diff fails to apply” whenever I want to commit any line or chunk.

  • Is there a way to do a really SPARSE checkout for git?
  • Reorder commits one of which is a merge
  • Set up Gitosis, but can't clone
  • Git for version controlling Android project
  • Git rebase arguments context explanation needed
  • git error: “index file is too small”
  • One Solution collect form web for “Is it possible to make –word-diff default in git diff, git gui, gitk”

    If you frequently invoke git diff you may define a git alias.

    $ git config [--global] alias.df "diff --word-diff=color"

    And then use git df instead of git diff.

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