Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/Documentation/config/worktree.adoc # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / Documentation / config / worktree.adoc` 20 lines ยท 1040 bytes Raw Blame History 1 `worktree.guessRemote`:: 2 If no branch is specified and neither `-b` nor `-B` nor 3 `--detach` is used, then `git worktree add` defaults to 4 creating a new branch from HEAD. If `worktree.guessRemote` is 5 set to true, `worktree add` tries to find a remote-tracking 6 branch whose name uniquely matches the new branch name. If 7 such a branch exists, it is checked out and set as "upstream" 8 for the new branch. If multiple matches are found, the command 9 fails. If no such match can be found, it falls back to 10 creating a new branch from the current `HEAD`. 11 12 `worktree.useRelativePaths`:: 13 Link worktrees using relative paths (when "`true`") or absolute 14 paths (when "`false`"). This is particularly useful for setups 15 where the repository and worktrees may be moved between 16 different locations or environments. Defaults to "`false`". 17 + 18 Note that setting `worktree.useRelativePaths` to "`true`" implies enabling the 19 `extensions.relativeWorktrees` config (see linkgit:git-config[1]), 20 thus making it incompatible with older versions of Git.