How to find the number of files changed from one commit to another in git

后端 未结 5 499
别那么骄傲
别那么骄傲 2021-02-06 22:48

I am working on a git repository which contains huge number of files changed b/w one commit to another, how to extract the number of files changes b/w commits.

5条回答
  •  北海茫月
    2021-02-06 23:23

    git show --stat
    

    This gives the list of files changed like this:

    1 file changed, 1 insertion(+), 1 deletion(-)

    Optionally you can add the commit code if you don't want to get the information from the latest.

    git show --stat {commit code without brackets}
    

提交回复
热议问题