I added a linked working tree for "develop" branch. So my worktrees are like this:
- "project" worktree -> master branch
- "project_develop" worktree -> develop branch
In this condition, what I want to do is to checkout master branch on "project_develop" worktree. But as I know, it is impossible to checkout same branch on separate worktrees. The only way I could think of is to add a new temporary branch.
I would appreciate it if someone show me another way.
Thanks!
git checkout <hash>
is not really quicker thangit checkout -b temp <target>
... – Charissacharissegit worktree
first appeared) have a nasty bug where added work-trees can become corrupted after 14 days. (Exactly when this happens, and whether it happens at all, is not easy to predict. It has to do with a bug ingit gc
.) – Mountain