Get a list of all files until a commit
- 1 Min. Read.
Using ls-tree you can get a list of the contents of a tree object.
1 |
git ls-tree --name-only -r <commit-ish> |
The above command will list only filenames (--name-only
) and recurses into subtrees (-r
).
Replace <commit-ish>
with the commit-ish you want to compare against.