简体   繁体   中英

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

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

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

例如

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

请参阅dannyp的回答。

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM