Git查看linux kernel的git commit提交记录

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)