Git & # 8594; show a list of files modified in recent entries in a specific directory

How can i do:

svn log -v -l 10 ./ 

in git?

+43
git
Nov 05 '10 at 9:39
source share
3 answers

This file is more like the svn command, as it shows the status of the file: 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 git log documentation page. There you will learn that -10 belongs to the last 10 commits, and -p will provide you with a complete patch among many other goodies.

+89
Nov 05 '10 at 13:03
source share

To show all files modified over the last 10 commits without any commit data, follow these steps:

 git diff --name-only HEAD~10..HEAD yourdir 
+18
Sep 06 '13 at 21:37
source share

Try to do

 git log -p -10 yourdir/ 

It should work.

+4
Nov 05 2018-10-11T00: 00Z
source share



All Articles