Get all files that have been modified in git branch

后端 未结 16 1661
深忆病人
深忆病人 2020-12-02 04:14

Is there a way to see what files have changed in a branch?

16条回答
  •  南笙
    南笙 (楼主)
    2020-12-02 04:37

    I can't believe there are so many ways to do this. I use whatchanged as someone posted before, just with the following arguments:

    git whatchanged --name-only --pretty="" origin..HEAD
    

    This just lists the filenames, and only the ones that changed on the current branch.

提交回复
热议问题