将本地工作空间robot_ws上传到gitee仓库

bash 复制代码
git config --global user.name "geniusChinaHN"
git config --global user.email "12705243+geniuschinahn@user.noreply.gitee.com"
cd ~/robot_ws
#git init#创建原始仓库时候用
git add .
git commit -m "上传文件内容描述"
#git remote add robot_ws https://gitee.com/geniuschinahn/robot_ws.git   ##创建原始仓库时候用
git push

把这个保存成一个BASE文件执行就差不多了

Git 全局设置:

复制代码
git config --global user.name "geniusChinaHN"
git config --global user.email "12705243+geniuschinahn@user.noreply.gitee.com"

创建 git 仓库:

复制代码
mkdir robot_ws
cd robot_ws
git init 
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin https://gitee.com/geniuschinahn/robot_ws.git
git push -u origin "master"

已有仓库?

复制代码
cd existing_git_repo
git remote add origin https://gitee.com/geniuschinahn/robot_ws.git
git push -u origin "master"
相关推荐
zhangrelay2 天前
机械臂末端规划智能模型的误区演示
linux·笔记·学习·ubuntu·ros2
爱就是恒久忍耐2 天前
Zenoh与ROS2通信
ros2
智碳能碳管理平台5 天前
碳排放核算软件如何支撑工业能碳大数据与节能优化
gitee·能碳管理系统·智碳能碳管理平台·企业能碳管理系统·碳排放核算软件·绿色工厂申报saas·能碳管理 ems
yubang32231115 天前
Android保活sdk
android·gitee·保活
cakeism8255 天前
金融行业 DevOps 平台推荐:2026年主流方案对比与 Gitee 选型解析
金融·gitee·devops
71777713 天前
研发平台选哪家比较好:2026年主流平台对比与Gitee选型指南
人工智能·gitee
ai大模型-探索者13 天前
Git在PyCharm中的使用完全指南
pycharm·gitee
明天…ling13 天前
gitee与vscode远程连接
vscode·gitee
我命由我1234514 天前
Git 推送报错:error: src refspec main does not match any
运维·git·gitee·github·运维开发·学习方法·版本控制