将本地工作空间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"
相关推荐
无人装备硬件开发爱好者1 天前
ROS2:无人机从 “能飞” 到 “会思考” 的全栈技术引擎 —— 深度拆解与落地指南(上)
无人机·ros2·无人机飞控
南_山无梅落1 天前
Git 结合 Gitee 使用教程:从入门到实战
git·gitee
起个名字总是说已存在2 天前
cursor如何拉取远程gitee代码到本地
gitee
Cx330❀2 天前
Git 多人协作全攻略:从入门到高效协同
大数据·elasticsearch·搜索引擎·gitee·github·全文检索·gitcode
进击中的小龙2 天前
基于rtklib的载波相位平滑伪距
c语言·算法·数学建模·gitee
MIXLLRED2 天前
Ubuntu 22.04/ROS2 Humble下使用Intel RealSense D435i相机
ubuntu·d435i·ros2·深度相机
迷雾骑士3 天前
IDEA中将项目提交到Gitee仓库
java·gitee·intellij-idea
TheNextByte13 天前
如何通过蓝牙将照片从 iPhone 分享到Android ?
android·gitee·iphone
别或许4 天前
Gitee新手使用全解
gitee
TheNextByte14 天前
将照片从Mac传输到Android 7 种可行方法
android·macos·gitee