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

后端 未结 2 967
我在风中等你
我在风中等你 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
    

提交回复
热议问题