Git diff 命令的几种常用情形

到 B 站观看视频

1. 系统自带 diff

作用:查看两个比较类似的东西的差异,这两个东西可以分别是单个文件,也可以是目录(包含多个文件)

diff -u file1 file2
diff -Nurp dir1 dir2

2. git diff 相关

3. 基础理论 Progit Book

4. git diff 的核心内容

5. 高级技巧