Get all files that have been modified in git branch

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

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

16条回答
  •  臣服心动
    2020-12-02 04:31

    I really liked @twalberg's answer but I didn't want to have to type the current branch name all the time. So I'm using this:

    git diff --name-only $(git merge-base master HEAD)
    

提交回复
热议问题