Re: What is the reason behind not hiding git worktrees from git?
From: Jason Cho <hidden>
Date: 2025-09-27 21:27:01
From: Jason Cho <hidden>
Date: 2025-09-27 21:27:01
I think the best practice is to not add a work tre within the master work tree. Suppose a repo is at the master branch, and you export a work tree in the directory f. Then, you check out the main repo to another branch which so happens to have a file named f. In this case, the check-out will fail due to the name collision.