将本地工作空间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"
相关推荐
xiaoerbuyu12334 天前
仿微信听书进度条
gitee
月夜风雨磊6 天前
Android NDK从r10c版本到r29版本的下载链接
android·gitee·android ndk
Mr.Winter`9 天前
运动规划实战案例 | 基于多源流场(Flow Field)的路径规划(附ROS C++/Python实现)
人工智能·机器人·自动驾驶·ros·ros2·具身智能
似霰13 天前
安卓系统属性之androidboot.xxx转换成ro.boot.xxx
android·gitee
liansmo15 天前
Git与TortoiseGit在Gitee平台的应用
git·gitee
eduics15 天前
Pull Request 中提示`commits incorrectly signed off`
gitee·github
不念霉运15 天前
Gitee推出“移动软件工厂“解决方案 解决嵌入式与涉密场景研发困局
gitee
不念霉运16 天前
DevOps平台大比拼:Gitee、Jenkins与CircleCI如何选型?
gitee·jenkins·devops
fly五行16 天前
Git基础玩法简单描述
大数据·git·搜索引擎·gitee