git -> show list of files changed in recent commits in a specific directory

后端 未结 5 1433
梦毁少年i
梦毁少年i 2020-12-12 16:10

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

5条回答
  •  天涯浪人
    2020-12-12 16:37

    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.

提交回复
热议问题