Sergei Basharov
Sergei Basharov

Reputation: 53850

Can I see all files from a specific commit?

I can use git ls-files to see all files in the project that are tracked by git.

Can I use this command to see all files that were present in some specific commit? I mean not those files that were changed at the moment of the commit, but the whole files tree like how it works with git ls-files?

Upvotes: 0

Views: 83

Answers (1)

torek
torek

Reputation: 488183

This is much simpler than the temporary index method, but the output format differs depending on options:

git ls-tree --name-only -r <commit>

Upvotes: 2

Related Questions