Is it possible to view multiple git branches at the same time for the same project?

前端 未结 6 1952
孤独总比滥情好
孤独总比滥情好 2021-01-30 12:24

I have 2 branches, which are not ready to be merged yet, but have some complementary logic, which I\'d like to review (before merging)

Can I check out multiple git branc

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-30 12:59

    As already mentioned, you can diff branches with git diff:

    git diff [--options]  [--] […]
    
    This form is to view the changes you have in your working tree relative to the named . You can use HEAD to compare it with the latest commit, or a branch name to compare with the tip of a different branch.
    

    Excerpt above is from Git documentation.

提交回复
热议问题