在特定目录中显示最近提交时更改的文件列表

在 Subversion 中,svn log显示提交日志消息 (参考文献)

如何在 git 中执行以下操作?

svn log -v -l 10 ./
93933 次浏览

试着去做

git log -p -10 yourdir/

应该可以。

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

值得查看 git log的完整文档页面。在那里你会了解到,-10指的是过去的10次提交,而 -p将给你完整的补丁,在各种其他好处。

若要显示在最近10次提交中更改的所有文件,而不包含任何提交信息,请执行以下操作:

git diff --name-only HEAD~10..HEAD yourdir

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

Git show $committee Id $—— name-only

It will result in the files which are changed during this commit

我很幸运:

$ git reflog --name-status -10 <path/to/folder/of/interest>

查找 log不能查找的内容。如果您知道某个名称的一部分,则管道输出到 grep。