Is there a way to see all changed files on a branch in Git?

前端 未结 4 688
自闭症患者
自闭症患者 2020-12-14 08:07

I apolagise if this isn\'t very clear but in Git, is there a way to see all changed files on a branch, by name only. As far as I know I can use git log to see files that ha

4条回答
  •  伪装坚强ぢ
    2020-12-14 08:32

    Don't know that there is something that does exactly what you want based only on your current branch, but if you know the commit id that is the parent of your branch, you can do:

    git diff --name-only ..HEAD
    

提交回复
热议问题