将本地工作空间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"
相关推荐
是翔仔呐13 小时前
C语言从黑框框到控硬件!51单片机零基础保姆式全系列教程 开篇前言+全书总览
c语言·开发语言·单片机·嵌入式硬件·gitee·51单片机
Riemann~~1 天前
ros2写一个可以修改参数的node
开发语言·python·ros2·机器人系统
千百元2 天前
将本地的项目放到gitee仓库
gitee
常利兵3 天前
解锁Android的隐藏超链接:Deep Link与App Link探秘
android·gitee
Luna-player3 天前
gitee上的vue项目,刚刚创建了一个分支,怎么在本地上拉取分支项目
前端·vue.js·gitee
老树临风_4 天前
ROS2机器人智能小车学习(1)- ROS2 最简安装与配置
学习·机器人·ros2
liu-yonggang4 天前
Fast-RTPS QoS 支持详解
ros2
Riemann~~4 天前
第一个ros2程序
ros2·机器人系统
晓纪同学5 天前
ROS2 -06-动作
java·数据库·python·算法·机器人·ros·ros2
Real-Staok6 天前
Git 积累 & 常用命令
git·gitee·github