将本地工作空间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"
相关推荐
浅梦语1115 小时前
32-1 nav2_map_server实际作用与用法图解
ros2·nav2
泡泡鱼(敲代码中)17 小时前
MySQL 学习笔记:DCL、函数与约束 —— 安全、效率、完整性的三板斧
开发语言·笔记·sql·学习·mysql·gitee
7177771 天前
金融行业研发平台推荐:Gitee 与主流方案对比及选型指南
人工智能·gitee
东小黑1 天前
Git 仓库操作与 VSCode 使用指南
git·vscode·gitee
米糕闯编程2 天前
鱼香ros2(七)功能包组织C++节点
c++·ros2·cmakelists
7177772 天前
有没有国产 GitLab?Gitee 与极狐 GitLab 等主流替代方案对比
人工智能·gitee
7177772 天前
Git自建用什么工具比较好?2025主流方案对比与选型指南
人工智能·gitee
米糕闯编程3 天前
鱼香ros2(五)用C++编写节点
c++·ros2·cmakelists·鱼香
AirDroid_cn3 天前
隐私沙盒:第三方应用读取剪切板内容如何拦截?
android·gitee
ShineWinsu3 天前
对于Git:远程操作的超详细保姆级解析
linux·git·gitee·github·远程仓库·分布式版本控制系统·远程操作