Clone the git repo from:
git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
Show the remote branch:
git branch -r
Change to 5.6.y branch:
git checkout linux-5.6.y
Show the diff between v5.6.4 and v5.6.5:
git diff --stat v5.6.4 v5.6.5
Show the specific directory diff, such as lib/:
git diff --stat v5.6.4 v5.6.5 lib
Show the commit log between v5.6.4 and v5.6.5:
git log --oneline v5.6.5 v5.6.4
Show all the fix log of the specific file:
git log -p --oneline v5.6.5 v5.6.4 lib/test_xarray.c
本文提供了从Git克隆Linux稳定版内核仓库的步骤,展示了如何查看远程分支,切换到特定版本,比较不同版本间的差异,包括文件和目录级别的改动,并演示了如何查看指定文件的修复日志。
9323

被折叠的 条评论
为什么被折叠?



