当前位置: 首页 > news >正文

VSCode连接Github的重重困难及解决方案!

一、背景:

  • 我首先在github创建了一个新的项目,并自动创建了readme文件
  • 其次在vscode创建项目并写了两个文件
  • 在我想将vscode的项目上传到对应的github上时,错误出现了

二、报错及解决方案:

1.解决方案:

        需要在git上配置用户名和邮箱:

2.配置代理

git config --global http.proxy 127.0.0.1:7890
git config --global https.proxy 127.0.0.1:7890

3.git push origin master

报错:fatal: 'origin' does not appear to be a git repository

a.用了这位佬的方法连接到了github:git 解决 fatal: 'origin' does not appear to be a git repository-CSDN博客

b.再次push,报错:git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Pleas

用这个方法配置了ssh:解决git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Pleas-CSDN博客

c.再次提交,报错:Updates were rejected because the tip of your current branch is behind

报错原因:GitHub内容与本地不

push前先将远程repository修改pull下来

git pull origin master

git push -u origin master

成功!健身去了...

http://www.lryc.cn/news/521901.html

相关文章:

  • 《AI赋能鸿蒙Next,打造极致沉浸感游戏》
  • 小白:react antd 搭建框架关于 RangePicker DatePicker 时间组件使用记录 2
  • <C++学习>C++ std 多线程教程
  • 用 Python 自动化处理日常任务
  • 《深入浅出HTTPS​​​​​​​​​​​​​​​​​》读书笔记(28):DSA数字签名
  • type 属性的用途和实现方式(图标,表单,数据可视化,自定义组件)
  • PSINS工具箱学习(四)捷联惯导更新算法
  • P1Linux和Docker常用终端命令:保姆级图文详解
  • Windows重装后NI板卡LabVIEW恢复正常
  • 深度解析统计学四大分布:Z、卡方、t 与 F 的关联与应用
  • zkServer.sh脚本
  • CV(10)--目标检测
  • UML系列之Rational Rose笔记七:状态图
  • C++单例模式的设计
  • 基于springboot的自习室预订系统
  • shell笔记
  • 《鸿蒙Next微内核:解锁人工智能决策树并行计算的加速密码》
  • AI刷题-最大矩形面积问题、小M的数组变换
  • Redis集群部署详解:主从复制、Sentinel哨兵模式与Cluster集群的工作原理与配置
  • LeetCode热题100(三十四) —— 23.合并K个升序链表
  • kalilinux - 目录扫描之dirsearch
  • 浅谈云计算04 | 云基础设施机制
  • 文件上传 分片上传
  • 【0391】Postgres内核 checkpointer process ① 启动初始化
  • 链路追踪SkyWalking
  • Uniapp判断设备是安卓还是 iOS,并调用不同的方法
  • 计算机网络 (42)远程终端协议TELNET
  • rtthread学习笔记系列-- 23 环形缓冲块 ringblock
  • HunyuanVideo 文生视频模型实践
  • Qt——QTableWidget 限制单元格输入范围的方法(正则表达式输入校验法、自定义代理类MyItemDelegrate)