我有一个普通的仓库,其中有一个工作树和一个 .git 文件夹,与工作树位于同一目录中。
我正在尝试使用该命令从该位置外部运行 git 命令
git --git-dir=/path/to/repo/.git --work-tree=/path/to/repo pull /some/other/repo master
但我不断收到错误fatal: /usr/libexec/git-core/git-pull cannot be used without a working tree.
。
我究竟做错了什么?