将本地工作空间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"
相关推荐
qq_423019554 小时前
git push 后 文件夹异常打不开
git·gitee
モンキー・D・小菜鸡儿8 小时前
Android13 新特性与适配指南
gitee·kotlin·安卓新特性
跟着杰哥学嵌入式8 小时前
如何使用gitee协作开发项目(入门教程)
gitee
Jul1en_14 小时前
解决 GitHub Actions 同步 Gitee 仓库中遇到的一些问题
ci/cd·gitee·自动化·github
初遇你时动了情1 天前
sourcetree 怎么吧gitee仓库拉取到本地项目中?
gitee
冬-梦1 天前
iPad Obsidian Git 同步 Gitee 仓库完整指南
git·gitee·ipad·obsidian·efficiency
叠叠乐2 天前
ubuntu ROS1 wifi开关 热点开关 链接指定wifi 扫描wifi节点
ubuntu·ros2
lynn8570_blog3 天前
Glance创建widget
gitee
敬往事一杯酒哈3 天前
1.4 ROS2 集成开发环境搭建
ros2
昨天那个谁谁3 天前
ROS2运行时报无法加载create_key等符号错误
c++·python·ros2