首页 > 解决方案 > 找不到 Github git-upload-pack 命令。找不到远程存储库

问题描述

首先,我应该说我对 git 不是很了解。我有我一直在推送并使用 gh-pages 部署到 github 页面的 repo。一切都运行良好。现在突然之间,我开始收到此错误

git-upload-pack '.': git-upload-pack: command not found
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

但仅在使用 gh-pages 尝试将我的应用程序部署到 github 页面时。我仍然可以毫无问题地推拉。我没有更改存储库的名称或任何内容,所以我不确定为什么突然这开始成为一个问题。我尝试在克隆远程 Git repo 时使用这个 git-upload-pack: command not found ,但就像我说的那样,我对 git 不是很了解,这让我很困惑。

如果它有所作为,我在 Windows 10 上使用 git shell

任何帮助是极大的赞赏

标签: gitgithub

解决方案


如果其他人有这个问题,我通过添加 GitHub/PortableGit_xxxxxxxxxxxxx/mingw32/bin到我的 PATH 变量来解决它


推荐阅读