How can I find out which files have been modified in a branch?

核能气质少年 提交于 2019-12-03 06:36:35

问题


I have two branches: master and bug1. I checked out bug1, did bunch of changes and multiple commits. How do I get a list of all files that were changed on the branch? I'm not interested in hashes, dates or any other commit related details. I just want to get a simple list of touched files.


回答1:


git diff --name-only master bug1



回答2:


From your master:

git diff --name-status BRANCH

See the git diff man page for details.



来源:https://stackoverflow.com/questions/1749323/how-can-i-find-out-which-files-have-been-modified-in-a-branch

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!