将本地工作空间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"
相关推荐
kyle~19 小时前
ROS2 --- RMW(ROS Middleware Interface)
linux·c++·机器人·ros2
济61720 小时前
ROS开发专栏---IMU 数据读取实验实现---适配Ubuntu 22.04
ubuntu·ros2·机器人开发
济61721 小时前
ROS开发专栏---基于 IMU 实现机器人航向锁定实验---适配Ubuntu 22.04
嵌入式·ros2·机器人开发
晨晖22 天前
项目上传到gitee的两种方式,ssh和https
https·gitee·ssh
kyle~2 天前
ROS2---rosbag2记录和回放话题、服务和动作数据
linux·机器人·数据采集·ros2
济6173 天前
ROS开发专栏---激光雷达数据获取仿真实验+ RViz2使用教程--适配Ubuntu 22.04
嵌入式硬件·嵌入式·ros2·机器人方向
学机械的鱼鱼3 天前
PX4与ROS2通信原理与仿真环境搭建教程
笔记·学习·px4·ros2
kyle~3 天前
机器人时间链路---工程流程示例
c++·3d·机器人·ros2
济6174 天前
ROS开发专栏---话题 Topic + 消息 Message 完整实战---适配Ubuntu 22.04
嵌入式·ros2·机器人开发
济6174 天前
ROS开发专栏---机器人运动控制 ---适配Ubuntu 22.04
嵌入式·ros2·机器人开发