motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit bb4f9e660b0934f70af693c56c5b8a4c322e7a1f (tree)
parent 189e3c406e79031986e1e6e96b487f8efa1fd887
Author: Tim Pope <code@tpope.net>
Date:   Tue, 11 Jan 2022 14:43:12 -0500

Add core.worktree to FAQ

Diffstat:
MREADME.markdown | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git 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