把一个本地项目导入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"
相关推荐
zxsz_com_cn2 小时前
设备预测性维护的意义 工业设备预测性维护是什么
大数据
samLi06203 小时前
【数据集】中国杰出青年名单数据集(1994-2024年)
大数据
成长之路5143 小时前
【数据集】分地市旅游收入数据集(2000-2024年)
大数据·旅游
Elasticsearch3 小时前
使用 Elastic Agent 混合摄取加速 Otel 采用
elasticsearch
大厂技术总监下海4 小时前
用户行为分析怎么做?ClickHouse + 嵌套数据结构,轻松处理复杂事件
大数据·数据结构·数据库
番茄灭世神4 小时前
Git入门使用学习
git·gitee·软件工程·计算机专业入门
大厂技术总监下海4 小时前
大数据生态的“主动脉”:RocketMQ 如何无缝桥接 Flink、Spark 与业务系统?
大数据·开源·rocketmq
2501_933670794 小时前
2026年中专大数据专业可考取的证书
大数据
W***r264 小时前
SpringBoot整合easy-es
spring boot·后端·elasticsearch
oMcLin4 小时前
如何在Ubuntu 22.04 LTS上优化PostgreSQL 14集群,提升大数据查询的响应速度与稳定性?
大数据·ubuntu·postgresql