把一个本地项目导入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"
相关推荐
洛森唛4 小时前
Elasticsearch DSL 查询语法大全:从入门到精通
后端·elasticsearch
字节跳动数据平台8 小时前
代码量减少 70%、GPU 利用率达 95%:火山引擎多模态数据湖如何释放模思智能的算法生产力
大数据
得物技术10 小时前
深入剖析Spark UI界面:参数与界面详解|得物技术
大数据·后端·spark
武子康11 小时前
大数据-238 离线数仓 - 广告业务 Hive分析实战:ADS 点击率、购买率与 Top100 排名避坑
大数据·后端·apache hive
武子康1 天前
大数据-237 离线数仓 - Hive 广告业务实战:ODS→DWD 事件解析、广告明细与转化分析落地
大数据·后端·apache hive
大大大大晴天1 天前
Flink生产问题排障-Kryo serializer scala extensions are not available
大数据·flink
Elasticsearch2 天前
如何使用 Agent Builder 排查 Kubernetes Pod 重启和 OOMKilled 事件
elasticsearch
Elasticsearch3 天前
通用表达式语言 ( CEL ): CEL 输入如何改进 Elastic Agent 集成中的数据收集
elasticsearch
武子康3 天前
大数据-236 离线数仓 - 会员指标验证、DataX 导出与广告业务 ODS/DWD/ADS 全流程
大数据·后端·apache hive
程序员小崔日记3 天前
如何将代码轻松上传到 Gitee?Git 使用全攻略!
git·gitee·上传