github - 无法推送到 github 中的远程文件
问题描述
当我输入“push origin master”命令时出现此错误,该怎么办?
错误消息 - “致命:无法访问' https://git.com/LokeshKarki/Java-Core-Advance-Program.git/ ':SSL:没有替代证书主题名称与目标主机名 'git.com' 匹配”
是的,我尝试使用此命令 - “git config --global http.sslVerify false”然后输入“push origin master”命令,然后显示此错误消息 - “致命:无法从重定向更新 url 库:要求:https://git.com/LokeshKarki/Java-Core-Advance-Program.git/info/refs?service=git-receive-pack 重定向:https ://venture.com/domains/git.com “
我想将我的本地文件推送到我在 github 上的私人仓库。
解决方案
看起来您的远程 url 设置不正确,git.com
而不是github.com
. 使用以下命令更正相同:
git remote set-url origin https://github.com/LokeshKarki/Java-Core-Advance-Program.git
然后再次尝试推动。
推荐阅读
- python - 求解输入代数方程python
- python - 将“文件”类型的文件读入熊猫数据框的最简单方法
- node.js - $limit 和 $skip 在 MongoDB 聚合管道中是可选的
- ios - 安装反应原生矢量图标后构建问题
- python - Python烧瓶应用程序,它返回文件列表
- wordpress - 照片响应的问题?( WordPress )
- node.js - 如何在 Web 应用程序中安全地跟踪会员状态
- azure - Azure 数据工厂禁用管道
- java - Android 第三方库:受保护的发布版本不调用函数和方法
- jena - 在耶拿的事务之外,DatasetGraphInMemory 的后端是否优于 TripleStoreMem