将本地工作空间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"
相关推荐
ai大模型-探索者3 小时前
Git在PyCharm中的使用完全指南
pycharm·gitee
明天…ling4 小时前
gitee与vscode远程连接
vscode·gitee
我命由我1234517 小时前
Git 推送报错:error: src refspec main does not match any
运维·git·gitee·github·运维开发·学习方法·版本控制
风合星语2 天前
2026 ROS 2 Lyrical C++ 入门(五):Action 实战——任务反馈、取消与超时处理
c++·机器人·ros2·异步编程·lyrical
烛之武2 天前
Git教程笔记
git·gitee
7177773 天前
国内组件安全扫描工具选哪家:2026年主流方案对比与选型指南
人工智能·gitee
tryCbest3 天前
git实现前后端分离项目提交同一个仓库
git·gitee
Mr.朱鹏3 天前
Git 仓库同时推送到 Gitee 与 GitHub 配置指南
git·gitee·开源·github
7177773 天前
GitHub 企业国产替代选型:Gitee 与主流平台对比及迁移要点
人工智能·gitee
7177773 天前
中小团队 DevOps 平台选哪家:2026 年主流平台对比与 Gitee 本土化方案解析
人工智能·gitee