将本地工作空间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"
相关推荐
boss-dog15 小时前
Ubuntu22.04 ros2-humble 源码安装 Moveit2
编译·ros2·moveit
我是好小孩1 天前
【Android】Binder 原理初探:理解 Android 进程通信机制
android·gitee·binder
困鲲鲲1 天前
ROS2系列 (13) : 常用Git指令入门(本地Git)
git·ros2
mrsyf3 天前
VSCode的插件配置同步到gitee
vscode·gitee
generallizhong3 天前
android TAB切换
android·gitee
艾莉丝努力练剑4 天前
【Git:基本操作】深度解析Git:从初始Git到熟悉基本操作
大数据·linux·c++·人工智能·git·gitee·指令
困鲲鲲4 天前
ROS2系列 (18) : Python服务通信实例——Client端
ros2
YuanDaima20485 天前
GitHub 与 Gitee 多平台 SSH Key 配置指南
gitee·开源·ssh·github·开源软件·key·免密登录
TTGGGFF6 天前
开源项目分享:Gitee热榜项目 2025-10-28 日榜
gitee·开源
困鲲鲲6 天前
ROS2系列 (10) : C++话题通信节点——发布者示例
c++·ros2