比較兩個檔案或目錄間的差異。 更多資訊:https://manned.org/diff.
舊檔案
相異於 新檔案
而需更改之處,以讓兩者相同:diff {{舊檔案}} {{新檔案}}
diff --ignore-all-space {{舊檔案}} {{新檔案}}
diff --side-by-side {{舊檔案}} {{新檔案}}
git diff
預設格式):diff --unified {{舊檔案}} {{新檔案}}
diff --recursive {{舊目錄}} {{新目錄}}
diff --recursive --brief {{舊目錄}} {{新目錄}}
diff --text --unified --new-file {{舊檔案}} {{新檔案}} > {{diff.patch}}