$ git diff-tree --no-commit-id --name-only -r <commit hash>- The ---no-commit-idsuppresses the commit ID output.
- The ---prettyargument specifies an empty format string to avoid the cruft at the beginning.
- The ---name-onlyargument shows only the file names that were affected (Thanks Hank).
- The --rargument is to recurse into sub-trees
credit: author
 
沒有留言:
張貼留言