1

[Git] 2.9 支援 git diff 高亮顯示

 2 years ago
source link: https://blog.niclin.tw/2016/06/14/git-2.9-%E6%94%AF%E6%8F%B4-git-diff-%E9%AB%98%E4%BA%AE%E9%A1%AF%E7%A4%BA/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Nic Lin's Blog

喜歡在地上滾的工程師

下載.png

Git2.9版本更新後,優化了git diff,在看Log的時候更直觀了,而不像之前改一行的幾個字,卻無法直接顯示,除非是使用github才可以高亮顯示,如果像我們整天與terminal相處不就看不到了

關於此次更新內容請詳見

https://github.com/blog/2188-git-2-9-has-been-released我們需要將Git對diff-highlight做關聯

請打開終端機輸入

cd /usr/local/bin

ln -s /usr/local/Cellar/git/2.9.0/share/git-core/contrib/diff-highlight/diff-highlight

接著試試你專案裡的git diff,應該就有變化了

範例如下:

螢幕快照 2016-06-15 下午2.14.11.png


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK