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

Git 更改remote repo 地址

Git 更改remote repo 地址

我们想更换远程 repo 地址, 因为我们仓库更换了名称.

git remote rename origin

查看现在的 romote 地址

# 查看 remote 地址
git remote -v
origin	git@gitee.com:changyubiao/attrdict.git (fetch)
origin	git@gitee.com:changyubiao/attrdict.git (push)
# delete old origin  
git remote remove origin# add new origin
git remote add origin  git@gitee.com:changyubiao/yydict.git# pull  code 
git pull origin main --allow-unrelated-histories# set-upstream 
git push --set-upstream origin main

参考文档

https://www.cnblogs.com/Nyan-Workflow-FC/p/14454788.html

分享快乐,留住感动. '2023-12-10 06:53:23' --frank
http://www.lryc.cn/news/256687.html

相关文章:

  • 24、文件上传漏洞——Apache文件解析漏洞
  • 使用Go快速开发TCP公共服务
  • QEMU环境调试方法
  • 京东数据运营(京东API接口):10月投影仪店铺数据分析
  • Aloha 机械臂的学习记录2——AWE:AWE + ACT
  • Spring Boot 项目的创建、配置文件、日志
  • MySQL:drop、delete与truncate区别
  • 2024年顶级的9个 Android 数据恢复工具(免费和付费)
  • c# Aspose.Cells 导出Excel表格 使用随记
  • SAP UI5 walkthrough step3 Controls
  • 【分布式微服务专题】从单体到分布式(一、SpringCloud项目初步升级)
  • python安装与工具PyCharm
  • Baumer工业相机堡盟工业相机如何通过BGAPISDK将相机图像高速保存到电脑内存(C#)
  • iOS 防截屏方法(一)
  • 【SpringBoot篇】5种类型参数传递json数据传参的操作
  • Mac系统升级node.js版本和npm版本
  • 风力发电对讲 IP语音对讲终端IP安防一键呼叫对讲 医院对讲终端SV-6005网络音频终端
  • 智能优化算法应用:基于蜉蝣算法3D无线传感器网络(WSN)覆盖优化 - 附代码
  • pymysql报错: unable to rollback、Already closed
  • [Linux] Web基础知识与http协议
  • 2020年第九届数学建模国际赛小美赛B题血氧饱和度的变异性解题全过程文档及程序
  • 【Flink on k8s】- 11 - 使用 Flink kubernetes operator 运行 Flink 作业
  • 【Linux】系统初识之冯诺依曼体系结构与操作系统
  • 【PyTorch】模型训练过程优化分析
  • GO -- 设计模式
  • angular状态管理方案(ngrx)
  • EPICS modbus 模块数字量读写练习
  • 万界星空科技低代码平台:搭建MES系统的优势
  • 【ArcGIS微课1000例】0078:创建点、线、面数据的最小几何边界
  • 五花八门客户问题(BUG) - 数据库索引损坏