When I say git status I get a list of changed files. I'd like to get a list of changed files for a commi开发者_开发问答t. Is there a way to use git show or some other command to do that? Thanks.
Yes, simply pass the --stat
flag:
git show --stat 1268afe676e
For commits, git show
takes the same formatting arguments as git diff-tree
, so see the latter's documentation for other formatting options.
Yes, use git log --stat
or git log --stat COMMIT
精彩评论