我有一个带有分离式工作树的仓库。通常情况下,如果我需要在仓库上工作,我可以按照以下方式更改配置文件,并使用像git status
和git checkout
这样的命令:
[core]
repositoryformatversion = 0
filemode = true
bare = false
worktree = /var/www/mysite.net/httpd/
# TO PUSH REPO TO STAGE: change bare=false and uncomment the worktree
现在,我遇到了错误fatal: This operation must be run in a work tree
。我有很多这样设置的站点,所以我确信我只是忘了某些东西,但我无法找出原因。有人能想到是什么原因吗?