将本地工作空间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"
相关推荐
TTGGGFF1 天前
开源项目分享:Gitee热榜项目 2025年11月第三周 周榜
gitee·开源
TTGGGFF1 天前
开源项目分享 : Gitee热榜项目 2025-11-14 日榜
gitee·开源
Tipriest_1 天前
典型的 ROS 2 ament_cmake构建CMake脚本中ament相关指令解释
ros2·ament_cmake
李浩洋931 天前
Typora picgo-core gitee图片上传设置
gitee·typora·图片上传
小叮当⇔1 天前
Gitee完全新手教程
gitee
Tipriest_2 天前
详细介绍colcon和ament的关系,以及它们在 ROS 2 构建系统中的角色和区别
ros2·colcon·ament
草莓熊Lotso2 天前
Git 本地操作入门:版本控制基础、跨平台部署与仓库核心流程
开发语言·人工智能·经验分享·git·后端·架构·gitee
melt_10263 天前
【gitee账号设置】git多个账号在多台电脑上使用
git·gitee·git账号管理
量子炒饭大师3 天前
【一天一个计算机知识】—— 【编程百度】翻译环境与运行环境
c语言·汇编·c++·gitee·机器翻译
lqqjuly3 天前
Lidar调试记录Ⅰ之Ubuntu22.04虚拟机安装ROS2(无坑版)
linux·ros2·lidar·ubuntu22.04