git - 找不到 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
任何帮助是极大的赞赏
解决方案
如果其他人有这个问题,我通过添加
GitHub/PortableGit_xxxxxxxxxxxxx/mingw32/bin
到我的 PATH 变量来解决它
推荐阅读
- mysql - 带有jwt实现的nodejs
- scala - Scala - 空列表的头 - 从选项列表中删除所有无
- javascript - 表格行中的 URL 数据从 Inner html 中提取,试图弄清楚如何使它在单击时在新选项卡中打开 URL
- javascript - js - while 循环只重复一次
- python - FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Ziyuan\\Desktop\\python-leakage-detection\\the_simulation_of_pressure.xlsx'
- python - 如何使python类能够加法或乘法,前面有数字?
- tensorflow - 如何在 tensorflow 中使用 CSR 格式
- react-native - React Native Snap Carousel 功能组件问题
- angular - 找不到与 **/test-*.xml 匹配的测试结果文件 - Azure DevOps
- java - 在 Java 8 中更新 XML 文件