Hacker News new | past | comments | ask | show | jobs | submit login

Is there a way to make the filenames in a 'git diff' stand out/coloured? I always have trouble figuring out where one file's diff ends and the next one begins.



  git diff --color
Or modify ~.gitconfig:

  [color]
  diff = auto

  [color "diff"]
    meta = yellow bold
    frag = magenta bold
    old = red bold
    new = green bold


My favorite: git diff --color-words=.


What's the difference between 'git diff --color-words' and what you posted?




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: