将本地工作空间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"
相关推荐
Mr. zhihao17 小时前
Mac + Typora + Gitee:粘贴图片自动上传,告别本地管理
gitee·typora
济61718 小时前
ROS开发专栏---基于激光雷达的自动避障---适配Ubuntu 22.04
嵌入式·ros2·机器人开发·机器人方向
济61718 小时前
ROS开发专栏---基于 SLAM Toolbox 实现仿真环境 SLAM 建图--适配Ubuntu 22.04
嵌入式·ros2·机器人开发·机器人方向
吕氏春秋i18 小时前
android kotlin Compose 蓝牙库推荐
android·gitee·kotlin
铁皮哥2 天前
【agent 开发】Claude Code 的 Skill 是怎么被加载的?从 name/description 到 SKILL.md 再到资源文件
java·服务器·数据库·python·gitee·github·软件工程
效能革命笔记2 天前
Gitee Team:以数据驱动与精细化管理,支撑关键领域 DevSecOps 落地
数据库·gitee
BestOrNothing_20152 天前
ROS2 xacro 保姆级使用教程!零基础从入门到精通
机器人·ros2·macro·xacro·prefix·引用变量·调用宏
.wsy.2 天前
Git教程(安装+流程+常用命令)
linux·git·gitee·intellij-idea
青瓦梦滋3 天前
Obsidian笔记PC/Android同步方案--Gitee/GitHub
笔记·gitee·github·obsidian
Irissgwe3 天前
二、Git 本地仓库:从 git init 到第一次提交
git·gitee·github