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

7.2k views Asked by At

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

2

There are 2 answers

4
Edward Z. Yang On BEST ANSWER

See dannyp's answer.

 git ls-tree -r --name-only $REV
0
dannyp On
git ls-tree -r --name-only $REV

for example

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