将本地工作空间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"
相关推荐
7177771 天前
2026年测试管理选哪家比较好:Gitee 与主流平台选型对比指南
gitee
7177771 天前
2026年制品管理选哪家比较好:企业级制品库选型维度与Gitee Repo能力对照
gitee
创世虚拟世界1 天前
把 3D 虚拟世界拉到本地:vibe coding 的手感,是从看见自己那一行改动开始的
javascript·数据库·人工智能·3d·gitee·虚拟现实
橙橙笔记1 天前
Gitee创建项目
gitee
行思理2 天前
个推多厂商参数配置新手教程
gitee·个推·uniapp推送·uni-push 2.0
7177772 天前
国内 Docker 镜像仓库推荐:Gitee 与主流方案对比及选型指南
docker·容器·gitee
钱多多_qdd2 天前
将 GitHub 项目导入 Gitee:三种常用方法详解
gitee·github
大雨歌2 天前
笛卡尔坐标 → 自然坐标(Frenet) 逐步推导全解 -2
ros2
墨天梦6 天前
D19_系统分享与文件URI
gitee·kotlin
米糕闯编程6 天前
鱼香ros2(十七)C++小海龟巡逻
开发语言·c++·机器人·ros2·服务·小海龟