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

后端 未结 5 484
别那么骄傲
别那么骄傲 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:38

    use this:

    git log --oneline --name-status  -1
    

    eg:

    $ git log --oneline --name-status bb3ae49 -1
    M       .vim/spell/en.utf-8.add
    M       .vim/spell/en.utf-8.add.spl
    

    this works just like

    git whatchanged --oneline --name-status  -1
    

提交回复
热议问题