In Subversion svn log
is the command to display commit log messages -- for details see the online manual at http://svnbook.red-bean.com/en/1.7/svn.ref.svn.c.log
Try to do
git log -p -10 yourdir/
It should work.
git show $commitId$ --name-only
It will result in the files which are changed during this commit
To show all the commit
of your branch(recent and old), you need to count the number of commits in the branch
git rev-list --count branch_name
Once you get all the commit count, you can run
git log --name-status -countNumber /path
This one is more similar to the svn command as it shows the file status: Added (A), Copied (C), Deleted (D), Modified (M), Renamed (R), and others.
git log --name-status -10 path/to/dir
It is worth looking at the full documentation page for git log. There you will learn that -10
refers to the past 10 commits, and -p
will give you the full patch, among a variety of other goodies.
To show all files changed in the last 10 commits, without any commit information, do:
git diff --name-only HEAD~10..HEAD yourdir