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

后端 未结 2 968
我在风中等你
我在风中等你 2021-01-03 19:08

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

相关标签:
2条回答
  • 2021-01-03 19:56
    git ls-tree -r --name-only $REV
    

    for example

    git ls-tree -r --name-only a27689bf7f46dc0735c5b3b6076010c87224063e
    
    0 讨论(0)
  • 2021-01-03 20:05

    See dannyp's answer.

     git ls-tree -r --name-only $REV
    
    0 讨论(0)
提交回复
热议问题