将本地工作空间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"
相关推荐
清空mega19 分钟前
第三章 Android常见界面控件
android·gitee
~~李木子~~1 天前
通过git上传项目到码云和GitHub操作手册
git·gitee·github
QT 小鲜肉2 天前
【Git、GitHub、Gitee】GitLab的概念、注册流程、远程仓库操作以及高级功能详解(超详细)
git·qt·gitee·gitlab·github
nenchoumi31194 天前
ROS2 Humble 笔记(四)ROS 的最小工作单元-- Node 节点
笔记·机器人·ros2
nenchoumi31194 天前
ROS2 Humble 笔记(八)动作 action
笔记·机器人·ros2
nenchoumi31194 天前
ROS2 Humble 笔记(十二)launch 文件与 namespace 启动多个节点
笔记·机器人·ros2
nenchoumi31194 天前
ROS2 Humble 笔记(十)多机分布式通讯 DDS 与宿主机和Docker容器
笔记·机器人·ros2
叠叠乐4 天前
Navigation2 行为树架构源码级分析与设计原理
ros2
QT 小鲜肉5 天前
【Git、GitHub、Gitee】按功能分类汇总Git常用命令详解(超详细)
c语言·网络·c++·git·qt·gitee·github
nenchoumi31195 天前
ROS2 Humble 笔记(七)标准与自定义 Interface 接口
笔记·机器人·ros2