How do I use the --work-tree option with git? I keep getting an error

北城以北 提交于 2019-12-04 03:35:29

This is a bug in earlier versions of Git. This problem should go away once you upgrade to 1.7.7.2 or later.

From the commit that fixed the bug:

You can't currently run git-pull or git-rebase from outside
of the work tree, even with GIT_WORK_TREE set, due to an
overeager require_work_tree function. Commit e2eb527
documents this problem and provides the infrastructure for a
fix, but left it to later commits to audit and update
individual scripts.

See also commit e2eb527.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!