From: Mike Hommey Date: Thu, 20 Feb 2020 00:29:32 GMT Subject: git rebase allows branches to be checked out in multiple worktrees Message-ID: <20200220002932.5jws6qpnivlvxckw@glandium.org> Hi, I just noticed a quirk with git rebase vs. worktrees. While using e.g. git checkout will prevent a same branch from being checked out from multiple worktrees, that's not the case for git-rebase, so the following scenario ends up with two checkouts of the same branch: $ git checkout -b foo HEAD~ $ git commit --allow-empty -m foo $ git worktree add /tmp/bar master $ cd /tmp/bar $ git rebase master foo Mike