You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like this is config'd via the .git dir in the main directory from which the worktree branches are derived? Wondering if this means that there is a more general / global config approach?
Activity
chrissimpkins commentedon Nov 25, 2021
related #168
how do you use this approach in your workflows Nikolaus?
chrissimpkins commentedon Nov 25, 2021
It looks like this is config'd via the .git dir in the main directory from which the worktree branches are derived? Wondering if this means that there is a more general / global config approach?
madig commentedon Jan 25, 2023
Seems like
.gitin a worktree is a file with the pointer to the main repo. You can extract the path with https://gitpython.readthedocs.io/en/stable/reference.html?highlight=worktree#git.repo.fun.find_worktree_git_dir from that file. You still have to fiddle with the path though, as it points to somewhere inside the main.gitdir.