fatal: ‘origin’ does not appear to be a git repository
fatal: Could not read from remote repository.
git 向分支推送时碰到此错误

出现此错误的原因是因为没有将远程仓库连接到你的本地代码,
这种情况下,建议先输入 git push -f命令强制提交一下
如果出现如下图的提示

进行下一步的绑定远程仓库

绑定仓库后,继续推送就可以了
git 踩坑 fatal: 'origin' does not appear to be a git repository fatal: Could not read from remote repo
最新推荐文章于 2024-12-24 11:13:44 发布
本文介绍了解决Git在向分支推送时遇到的'fatal:‘origin’doesnotappeartobeagitrepository'错误的方法。该错误通常因为本地代码未连接远程仓库。文章提供了使用git push -f命令的解决方案,并指导如何绑定远程仓库。

3万+

被折叠的 条评论
为什么被折叠?



