将本地工作空间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"
相关推荐
ProgramHan20 小时前
github、gitlab、gitee分别都是什么,为什么不能访问?
gitee·gitlab·github
PieroPc1 天前
用python 写的 Gitee 数据备份工具
开发语言·python·gitee
secondyoung2 天前
Git使用:Git使用问题及解决方法总结
windows·经验分享·git·vscode·gitee·github·gitcode
承渊政道2 天前
Linux系统学习【深入剖析Git的原理和使用(下)】
linux·服务器·git·学习·gitee·vim·gitcode
LS_learner3 天前
ROS 2(Robot Operating System 2)通信机制
ros2
LS_learner3 天前
ROS2通信DDS 最核心的特性之一 QoS(Quality of Service,服务质量)
ros2
LS_learner3 天前
OpenSSH 服务器并启动/启用服务的完整流程
ros2
LS_learner3 天前
ROS2的通信方式DDS—机器人的神经网络
ros2
zylyehuo4 天前
Windows11 & Ubuntu22.04 双系统
ros2
liwulin05065 天前
【ESP32-S3】ESP32-S3 + YDLIDAR X2 + ROS2 远程导航完整落地方案
esp32·ros2·ydlidar