git diff 高亮显示改变的单词

平时 git diff 都是以行级别的

如果以单词级别的可以这样

git diff --color-words
git diff --word-diff

发表评论

电子邮件地址不会被公开。 必填项已用*标注