将本地工作空间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"
相关推荐
米糕闯编程13 小时前
鱼香ros2(三)Linux操作总结
linux·机器人·ros2
蝙蝠侠的小蝙蝠2 天前
【ROS2 工具】Launch
ros2·launch·多节点启动
7177772 天前
开源代码审计平台推荐:Gitee 在企业代码审计流程中的定位与选型建议
人工智能·gitee
7177772 天前
代码审计工具有哪些:面向 Gitee 生态的对比选型参考
gitee
某林2122 天前
机器人重启失联:DDS 发现机制与传输层静默故障
人工智能·python·机器人·硬件架构·ros2
理智.6293 天前
Git 工具使用之项目版本回退与修改备份:stash、reset、reflog 常用指令详解
git·gitee·github
米糕闯编程3 天前
鱼香ros2(二)运行第一个机器人
机器人·ros2
大树914 天前
把 Java 项目从手动 SCP 升级到 Gitee Go 自动部署:一份踩坑实录
java·golang·gitee
蝙蝠侠的小蝙蝠4 天前
【ROS2 通信机制】话题、服务、动作
ros2·服务·动作·话题·通信接口
LayZhangStrive5 天前
Git - 使用IDEA和git上传本地项目到Gitee远程仓库
git·gitee·idea