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

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

    With Git 2.5+ (Q2 2015), a Git repo will support multiple working trees with git worktree add (and that will replace contrib/workdir/git-new-workdir)

    Those "linked" working trees are actually recorded in the main repo new $GIT_DIR/worktrees folder (so that work on any OS, including Windows).

    See more at "Multiple working directories with Git?"

提交回复
热议问题