开发者

How do I see the list of changed files for a single commit, in Git?

开发者 https://www.devze.com 2023-02-09 04:43 出处:网络
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,

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

0

精彩评论

暂无评论...
验证码 换一张
取 消