Why does git worktree add create a branch, and can I delete it?

后端 未结 6 826
暖寄归人
暖寄归人 2021-02-12 12:08

I used git worktree add to create a new worktree. I noticed that is has created a new branch in the repo with the same name as the worktree. What is this branch for

6条回答
  •  囚心锁ツ
    2021-02-12 12:26

    From Git 2.17.0, you can safely run this all-in-one command

    git worktree remove 
    

提交回复
热议问题