From bb4f9e660b0934f70af693c56c5b8a4c322e7a1f Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 11 Jan 2022 14:43:12 -0500 Subject: [PATCH] Add core.worktree to FAQ --- README.markdown | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.markdown b/README.markdown index f572ce2..b757601 100644 --- a/README.markdown +++ b/README.markdown @@ -103,6 +103,17 @@ it was removed. Use `:Git! push` to use Fugitive's own asynchronous execution, or retroactively make `:Git push` asynchronous by pressing `CTRL-D`. +> Why am I getting `core.worktree is required when using an external Git dir`? + +Git generally sets `core.worktree` for you automatically when necessary, but +if you're doing something weird, or using a third-party tool that does +something weird, you may need to set it manually: + + git config core.worktree "$PWD" + +This may be necessary even when simple `git` commands seem to work fine +without it. + > So I have a symlink and... Stop. Just stop. If Git won't deal with your symlink, then Fugitive won't