ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

Apollo自动驾驶虚拟仿真赛笔记[3]-完成第一个场景并生成patch文件(未完待续)

2022-05-30 02:31:20  阅读:317  来源: 互联网

标签:Git git remote apollo gitlab patch 未完待续 场景 Apollo


场景描述

planning模块

备注

在 场景 中,单击 请选择场景,进入批量运行的场景选择界面。在自动驾驶场景选择页面,您可以按需选择适合的场景。目前支持通过搜索关键字或筛选场景标签来找到理想的场景,也支持选择用户自定义场景分组。提交场景选择结果后,在新建任务页面可看到已选择的场景数量。
在 Git仓库地址 中,上传 Git 可公开访问的仓库地址。
在 分支/Commit Id 中,选择一个分支或输入一个 commit 以决定编译和测试的代码版本。注意:仅支持运行 Fork 自 Apollo2.0.0 及以后版本的代码。
在 Git分支名称 中,选择分支名称。

git设置,准备提交代码

准备工作目录

思路:gitlab创建公开项目->fork gitee的apollo->pull to gitlab->更改文件也pull

mkdir /apollo_contest
git init
git clone -b edu_sim_contest git@gitee.com:ApolloAuto/apollo.git
git remote add origin git@gitlab.com:paisheng1/temp_apollo_contest.git(你的git地址)
git add .
git push origin master -force



error: src refspec master does not match any

原因本地仓库为空
git add .
git commit -m "test4"

查看

git remote -v显示所有远程仓库
git remote show 别名
git status查看仓库状态
git log 查看提交日志
git branch 查看分支

error: failed to push some refs to 'git@gitlab.com:paisheng1/temp_apollo_contest.git'

hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
解决办法git push gitlab master --force

gitignore 忽略某些文件

在 Git 中,我们可以用 git add 要告诉 Git 文件冲突已经解决
运行git config core.ignorecase false,关闭git忽略大小写配置,即可检测到大小写名称更改

使用git format-patch制做patch文件

使用以下任意一条指令即可,第一条指令中的HEAD~1中的数字1即为上一步操作中数出来的commit数。使用该方法可以将多个commit制作为1个patch文件。

提交代码

(笔者还没完成)

标签:Git,git,remote,apollo,gitlab,patch,未完待续,场景,Apollo
来源: https://www.cnblogs.com/qsbye/p/16325507.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有