lucacerone
lucacerone

Reputation: 10109

git: how can I list ALL the files present at a given commit?

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.

Upvotes: 5

Views: 472

Answers (2)

Alex Henrie
Alex Henrie

Reputation: 887

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

Upvotes: 0

Michael Mior
Michael Mior

Reputation: 28753

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

Upvotes: 9

Related Questions