5

I'd like to get a list of all the files present in git at a given point.

I've tried issuing something like:

git show --pretty="format:" --name-only f21b25e76d146

This only shows the files that where added though, not ALL the files present in the working directory at that specific commit. Is there a way to do so?

Thanks a lot in advance.

Coren
  • 5,517
  • 1
  • 21
  • 34
lucacerone
  • 9,859
  • 13
  • 52
  • 80
  • Related question: http://stackoverflow.com/questions/424071/list-all-the-files-for-a-commit-in-git ([second answer](http://stackoverflow.com/a/444317/1449460) answers this) – Nikana Reklawyks Nov 05 '12 at 06:18

2 Answers2

9

git ls-tree -r --name-only --full-tree f21b25e76d146

Michael Mior
  • 28,107
  • 9
  • 89
  • 113
0

gitk can do this easily. Run gitk f21b25e76d146 and above the lower-right pane, click Tree.

Alex Henrie
  • 744
  • 1
  • 6
  • 17