Comparing two branches in Git?

This question already has an answer here:

  • Showing which files have changed between two revisions 14 answers

  • git diff branch_1..branch_2
    

    That will produce the diff between the tips of the two branches. If you'd prefer to find the diff from their common ancestor to test, you can use three dots instead of two:

    git diff branch_1...branch_2
    
    链接地址: http://www.djcxy.com/p/18870.html

    上一篇: git pull而不在git目录中

    下一篇: 比较Git中的两个分支?