把一个本地项目导入gitee创建的仓库中

初始化本地git仓库

PS D:\aaa\driver25.11.19\driver> git init

Reinitialized existing Git repository in D:/aaa/driver25.11.19/driver/.git/

复制代码
git init

对标到远端地址

PS D:\aaa\driver25.11.19\driver> git remote add origin https://gitee.com/the-pretty-boy-in-the-county/designated-driver.git

复制代码
git remote add origin https://gitee.com/the-pretty-boy-in-the-county/designated-driver.git

上传到develop分支

PS D:\aaa\driver25.11.19\driver> git push -u origin "develop"

error: src refspec develop does not match any

error: failed to push some refs to 'https://gitee.com/the-pretty-boy-in-the-county/designated-driver.git'

复制代码
git push -u origin "develop"

创建并选择develop分支

PS D:\aaa\driver25.11.19\driver> git checkout -b develop

Switched to a new branch 'develop'

复制代码
git checkout -b develop

查看当前分支

PS D:\aaa\driver25.11.19\driver> git branch

* develop

main

复制代码
git branch

上传到gitee仓库

PS D:\aaa\driver25.11.19\driver> git push -u origin "develop"

复制代码
git push -u origin "develop"
相关推荐
库库的数据库笔记1 小时前
国产信创数据库的MySQL兼容性深度对比解析
大数据·数据库·mysql·oceanbase·政务
Elastic 中国社区官方博客2 小时前
我们如何通过 70 多个拉取请求,将 OpenTelemetry Java agent 迁移到 invokedynamic
java·大数据·开发语言·elasticsearch·搜索引擎·全文检索·es
珠海西格电力4 小时前
零碳园区管理系统的性能评估体系的行业标准
大数据·网络·人工智能·物联网·机器学习·架构·能源
杨先生哦4 小时前
SOC告警研判实战:海量告警降噪、误报甄别、内网风险处置全流程(上岗必用)
大数据
一线数智5 小时前
朱鹰:人的判断力,比算力更重要
大数据·人工智能
用户3610588626125 小时前
Flink ResourceManager启动流程源码深度剖析:从ClusterEntrypoint到Slot分配的完整链路
大数据
用户3610588626126 小时前
Flink ApplicationMaster启动流程源码深度剖析:从YARN提交到JobMaster启动的完整链路
大数据·flink
初心未改HD7 小时前
DSH Skill开发实战:SKILL.md是给LLM看的操作手册,不是给人看的README,踩了4个坑
java·大数据·开发语言
程序 代码狂人7 小时前
据仓库常见表类型详解(面试完整版,金融数仓适用)
大数据
阿里云大数据AI技术7 小时前
云栖实录|Hologres 5.0全新发布:Agent Native 的全模态实时数仓
大数据·人工智能·agent