将本地工作空间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"
相关推荐
梁下轻语的秋缘4 小时前
从零到一:本地项目上传Gitee完整指南(新手避坑版)
gitee
TheNextByte14 小时前
如何在Android上恢复已删除的文件
android·gitee
小屁猪qAq4 小时前
ROS2 节点中使用参数
开发语言·c++·参数·ros2
WWZZ20251 天前
Isaac Sim入门——基础用法
机器人·大模型·机械臂·ros2·具身智能·isaac sim
玄同7652 天前
让 Trae IDE 智能体 “读懂”文档 Excel+PDF+DOCX :mcp-documents-reader 工具使用指南
人工智能·git·语言模型·gitee·github·ai编程·mcp
General_G3 天前
ROS2资源汇总
linux·机器人·ros2
2301_805962933 天前
树莓派的一些问题记录-1:usbboot仓库
python·gitee
COSMOS_*5 天前
2025最新版 Android Studio安装及组件配置(SDK、JDK、Gradle)
android·ide·jdk·gitee·android studio
Mo_YuO.o5 天前
工作区 暂存区 版本库
git·gitee·github
深念Y5 天前
本地Git仓库推送到Gitee教程
git·gitee·github·仓库·项目·源代码管理·初始化