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

前端 未结 6 2010
孤独总比滥情好
孤独总比滥情好 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条回答
  •  半阙折子戏
    2021-01-30 12:52

    First thing that comes to my mind it to checkout each branch on separate project. So: 1. checkout branch A on primary clone (1) 2. create a new clone (2) 3. checkout branch B in clone 2

    Second approach could be to create a new branch (aka C) and merge both branch A and B to it. If they are complimentary than this might help with your review.

提交回复
热议问题