Get all files that have been modified in git branch

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

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

16条回答
  •  北海茫月
    2020-12-02 04:35

    Expanding off of what @twalberg and @iconoclast had, if you're using cmd for whatever reason, you can use:

    FOR /F "usebackq" %x IN (`"git branch | grep '*' | cut -f2 -d' '"`) DO FOR /F "usebackq" %y IN (`"git merge-base %x master"`) DO git diff --name-only %x %y
    

提交回复
热议问题