How to list files in specific revision in `git`?

别来无恙 提交于 2019-11-30 00:20:16

问题


I want to know file list in specific revision in git repository. How can I do this?


回答1:


See dannyp's answer.

 git ls-tree -r --name-only $REV



回答2:


git ls-tree -r --name-only $REV

for example

git ls-tree -r --name-only a27689bf7f46dc0735c5b3b6076010c87224063e


来源:https://stackoverflow.com/questions/5215193/how-to-list-files-in-specific-revision-in-git

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!