![](/img/trans.png)
[英]Is there a way of having git show lines added, lines changed and lines removed?
[英]git log shows added / removed - is there a way to show modified lines
當我們使用$ git log
命令時,我們可以看到為一個文件添加/刪除了多少行。
我的問題是-有沒有辦法檢查修改了哪些行(既沒有添加也沒有刪除)? 還是只有git diff
做到這一點?
這是一個哲學問題,因為修改后的行可以簡單地認為是先刪除再添加。
看起來您正在尋找的東西可以使用git diff
--color-words
選項來實現。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.