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

前端 未结 6 1942
孤独总比滥情好
孤独总比滥情好 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:59

    Yes it is possible with appropriate care. However you are taking one of the copies 'away' from the regular git directory using --work-tree= option, so changes there won't be seen by git unless you specially tell it. I gave an example here single-working-branch-with-git - see the UPDATED segment.

    Note that the git-new-workdir doesn't work on Windows XP as it requires Unix style links.

提交回复
热议问题