Xcode_Manolo
Xcode_Manolo

Reputation: 21

What were existing files from working-tree at a given commit?

I want to know, if it's possible, what were the existing files from my working-tree at the time that a concrete commit was made.

Upvotes: 0

Views: 38

Answers (1)

Amadan
Amadan

Reputation: 198324

You can use git ls-tree -r --name-only <commit>.

-r recurses into subdirectories, --name-only prevents display of git metadata.

Upvotes: 2

Related Questions