开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜