I understand that I can use git diff master
to see how my feature branch is different from the master branch. I'm only interested in changes made by this particular branch, though, not changes on master. On GitHub, I can see the files changed under the "Files changed" tab of a pull request. How can I get the same list of files from the command line?
您可以使用--name-only
选项来git diff
:
$ git diff --name-only master...<feature branch>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.