Moshe
Moshe

Reputation: 58067

How can I repair my git configuration?

I ran git config --global core.worktree and it messed up all of my git repos. How can I undo this change? What's the default value for core.worktree and how can I set it up?

Upvotes: 1

Views: 208

Answers (1)

VonC
VonC

Reputation: 1323135

You could simply remove that config (git config --global --unset core.worktree)or:

Set the path to the root of the working tree.
This can be overridden by the GIT_WORK_TREE environment variable and the --work-tree command line option

The default work_tree directory is the one with the .git in it.

Upvotes: 3

Related Questions