在編寫Markdown(文章,報告,文檔等)時,在差異時使用--word-diff
標誌更有用。使Git自動在Markdown文件中使用--word-diff
沒有--word-diff
我們可以看到變化的整條生產線的價值:
-Luckily, Git commit templates are incredibly simple to set up. Start by creating
+Luckily, Git commit templates are relatively simple to set up. Start by creating
而且隨着--word-diff
我們看到只有[-incredibly-]{+relatively+}
已經改變:
Luckily, Git commit templates are [-incredibly-]{+relatively+} simple to set up. Start by creating
我真的喜歡GIT中自動使用--word-diff
當它知道我在區分Markdown文檔時:是否有可能?我已經開始鬆散地閱讀Git Attributes,但沒有快樂。
乾杯!
可能重複[如何爲\ *。tex文件自動使用git diff --word-diff選項而不是別人?](http://stackoverflow.com/questions/36368060/how-to-automatically-use -git-diff-word-diff-option-for-tex-files-but-not -oth) –