github常见错误集合 [rejected] main -> main (non-fast-forward) Failed to connect to github.com por
问题描述:
问题一:
fatal: unable to access ‘https://github.com/yuanjiejiahui/supermall.git/’: Failed to connect to github.com port 443: Timed out
OpenSSL SSL_read: Connection was reset, errno 10054
网络问题,尝试多次连接或者切换dns.
或者url目的地址拼写错误。
问题二:
远程仓库和本地仓库代码不统一:
git pull --rebase origin main
git push --set-upstream origin main
问题三:
本地为master分支,死活找不到main分支
github改版后无法提交到默认main分支上
出错:
执行如下操作:
<your_token>是你的github个人令牌
<your_name>你的github名称
<program_name>当前仓库项目名称
git init
git add .
git commit -m "初始化项目"#如果这步无法执行请执行下一步
git remote add origin https://<your_token>@github.com/<your_name>/<program_name>.git
#上一步不起作用才执行
git remote set-url origin https://<your_token>@github.com/<your_name>/<program_name>.gitgit branch -m master main #将master分支命名为main
git push --set-upstream origin main #这步如果出现 ! [rejected] main -> main (fetch first)报错,请看问题二.
问题四:
! [rejected] main -> main (non-fast-forward)
error: failed to push some refs to ‘…’
出现这个问题是因为github中的README.md文件不在本地代码目录中,可以通过如下命令进行代码合并
git pull --rebase origin main
github常见错误集合 [rejected] main -> main (non-fast-forward) Failed to connect to github.com por相关推荐
- (保姆教学)Failed to connect to github.com port 443 after 21094 ms: Timed out
文章目录 github连接超时问题 Failed to connect to github.com port 443 after 21094 ms: Timed out 如果觉得对你有用不要忘记了,点 ...
- 【GitHub】Failed to connect to github.com port 443 的一种解决方案
文章目录 0. 前言 1. 问题描述 2. 解决方案 2.1 问问GPT 2.2 搜一搜 2.3 结合自身实际 Failed to connect to github.com port 443 的一种 ...
- Git报错解决:OpenSSL SSL_read: Connection was reset, errno 10054和Failed to connect to github.com port 443
问题1:OpenSSL SSL_read: Connection was reset, errno 10054 在利用git上传自己的项目时会报错: 问题原因 openssl ssl_read:连接已 ...
- Failed to connect to GitHub to update the CocoaPods/Specs specs repo 问题
为什么80%的码农都做不了架构师?>>> https://www.jianshu.com/p/a502eb72b689 今天pod search 一个库时发现搜索到的版本比gi ...
- github unable to access 'https://github.com/...: Failed to connect to github.com port 443‘
建立一个github帐号(pythonsoft)之后,按照提示create a repository: test. 想把这个项目clone到本地: git clone https://github.c ...
- Github报错——Failed to connect to github.com port 443: Timed out
出现的问题 用 github 上传文件,已经很久没出过错了,今天上传的时候,出现了超时的错误.就是下面这样 fatal: unable to access 'https://github.com/pr ...
- git push 报错 Empty reply from server 或 Failed to connect to github.com port 443: Time out
git push 报错 Empty reply from server 或 Failed to connect to github.com port 443: Time out 问题出现 报错信息 问 ...
- fatal: unable to access ‘https://github.com/PX4/PX4-Autopilot.git/‘: Failed to connect to github.com
错误 :fatal: unable to access 'https://github.com/PX4/PX4-Autopilot.git/': Failed to connect to github ...
- git clone 出现fatal: unable to access ‘https://github.com/xxx: Failed to connect to github.com
问题描述: 使用git clone命令时,出现如下错误: fatal: unable to access 'https://github.com/xxx': Failed to connect to ...
最新文章
- 4. Brackets 前端编辑器试用
- 004_FastDFS分布式添加多个tracker
- python中lines是什么类型_python里的splitlines详解
- 打开windows 10系统语言设置的快捷方式
- @ConfigurationProperties + @EnableConfigurationProperties
- Hibernate-HQL基础
- vm内核参数优化设置
- 360云台智能看家存储在哪_新品360智能摄像机云台变焦版,惊喜改变可不止一点点...
- python基础数据结构互转和2、8、10、16进制互转
- 小D课堂 - 零基础入门SpringBoot2.X到实战_第三节SpringBoot热部署devtool和配置文件自动注入实战_14、SpringBoot2.x使用Dev-tool热部署...
- 如何判断自己的操作系统是32位还是64位?
- Linux下结束进程的命令
- 计算机制图的相关标准,机械制图国家标准与计算机绘图.docx
- 第十章(项目沟通管理)知识点
- W801单片机学习笔记——内部结构,总线架构篇
- 【小墨mysql】mysql系列之三---事务
- 采用16线激光雷达和轮式里程计调用cartographer室内融合定位
- sql修改服务器标记,KB974006-SQL Server 查询优化程序修复程序模型4199服务模型
- Tracup|工作时节省时间的三个奇异但是有用的小妙招
- openEuler Meetup 南京站 | 麒麟信安加入南京用户组,分享《CentOS原地透明迁移方案技术实践》