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.

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.

Was this article helpful?

Related guides

Comments 0
There are no comments at the moment.