将本地工作空间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"
相关推荐
zh路西法1 天前
【10天速通ROS2-PX4无人机】(四) 关掉GPS和气压计,纯激光定位还能飞吗
c++·无人机·px4·ros2·卡尔曼滤波·fastlio2
7177771 天前
Coze 工作流 + Gitee API 落地指南:研发 Issue 智能化自动管理实践
gitee·jquery·issue
7177771 天前
自研 BCA 引擎驱动:Gitee Scan 构建软件工厂全生命周期安全检测体系
安全·gitee
视图猿人2 天前
ROS2 AGV SLAM导航仿真系统技术详解与踩坑实录
机器人·ros2
2301_809815252 天前
Git和Gitee基本使用教程
git·gitee
zh路西法3 天前
【10天速通ROS2-PX4无人机】(一) 从零搭建仿真环境,妈妈再也不用担心我炸机了!
无人机·仿真·px4·ros2·gazebo
zdkdchao4 天前
建立gitee对github仓库的镜像
gitee·github
7177774 天前
从工具自动化到自主研发:Gitee 智能 DevOps 全域落地实践
gitee·自动化·devops
7177774 天前
Gitee DevOps 国产化研运能力解析:安全与研发效能双维度升级
安全·gitee·devops
午安~婉5 天前
Git中SSH连接
前端·git·gitee