git: how can I list ALL the files present at a given commit?

I'd like to get a list of all the files present in git at a given point.

I've tried issuing something like:

git show --pretty="format:" --name-only f21b25e76d146

This only shows the files that where added though, not ALL the files present in the working directory at that specific commit. Is there a way to do so?

Thanks a lot in advance.


git ls-tree -r --name-only --full-tree f21b25e76d146


gitk can do this easily. Run gitk f21b25e76d146 and above the lower-right pane, click Tree.

链接地址: http://www.djcxy.com/p/26656.html

上一篇: Bash脚本从git中提取文件名whatchanged

下一篇: git:如何列出给定提交中的所有文件?