将本地工作空间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"
相关推荐
初遇你时动了情4 小时前
sourcetree 怎么吧gitee仓库拉取到本地项目中?
gitee
冬-梦7 小时前
iPad Obsidian Git 同步 Gitee 仓库完整指南
git·gitee·ipad·obsidian·efficiency
叠叠乐13 小时前
ubuntu ROS1 wifi开关 热点开关 链接指定wifi 扫描wifi节点
ubuntu·ros2
lynn8570_blog2 天前
Glance创建widget
gitee
敬往事一杯酒哈2 天前
1.4 ROS2 集成开发环境搭建
ros2
昨天那个谁谁2 天前
ROS2运行时报无法加载create_key等符号错误
c++·python·ros2
向葭奔赴♡3 天前
Android AlertDialog实战:5种常用对话框实现
android·java·开发语言·贪心算法·gitee
thinkpad12345678903 天前
ubuntu22.04+miniconda+ros2的坑(1)
pycharm·anaconda·ros2
shx66663 天前
2.1.2 ROS2 C++ 示例
c++·ros2
TTGGGFF4 天前
开源项目分享 : Gitee热榜项目 2025-12-4 日榜
gitee·开源