git存档到远程失败,错误为`git upload archive:未找到命令`
我已尝试将我的分支导出到未安装git的远程服务器,其中包含以下内容:git存档到远程失败,错误为`git upload archive:未找到命令`,git,Git,我已尝试将我的分支导出到未安装git的远程服务器,其中包含以下内容: git存档--format=tar--远程=ssh://user@env.com/path/to/folder dev|tar-xf- 但是,我得到了以下错误: bash: git-upload-archive: command not found fatal: The remote end hung up unexpectedly 失败的原因可能是什么? 如果我尝试将归档文件保存到本地存储库,一切正常: git archi
git存档--format=tar--远程=ssh://user@env.com/path/to/folder dev|tar-xf-
但是,我得到了以下错误:
bash: git-upload-archive: command not found
fatal: The remote end hung up unexpectedly
失败的原因可能是什么?
如果我尝试将归档文件保存到本地存储库,一切正常:
git archive master | tar-x-C/path/to/local/folder
如果远程服务器“没有安装git”,为什么要在其上运行git
命令?我认为这是一个合理的“失败原因”…我想我不理解archive
命令。现在看来,它更像是进口而不是出口。