From 2ef47f11433760c3963e0803a10d2259d38597af Mon Sep 17 00:00:00 2001 From: lishuanghua <17302618@qq.com> Date: Mon, 30 Nov 2020 16:02:49 +0800 Subject: [PATCH] D-Kit : Add the git operations to the apollo_installation_cn.md file (#13080) --- .../Waypoint_Following/apollo_installation_cn.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/D-kit/Waypoint_Following/apollo_installation_cn.md b/docs/D-kit/Waypoint_Following/apollo_installation_cn.md index 734dfaab673..08c66714de7 100644 --- a/docs/D-kit/Waypoint_Following/apollo_installation_cn.md +++ b/docs/D-kit/Waypoint_Following/apollo_installation_cn.md @@ -606,3 +606,17 @@ function check_esd_files() { } ``` 不同的apollo版本可能对检查的库文件名称的要求不同,可根据实际情况建立软连接。 + +d.`apollo`代码没有`git remote -v`、`git branch -a`和`git log`等相关的`git`信息。 + +造成以上问题的原因是用户错误地使用了`git init`等相关的命令而导致的`apollo`代码的`git`信息丢失。依次输入以下命令即可恢复`apollo`代码的`git`信息,切记在操作之前备份自己的`apollo`代码。 +``` +cd ~/apollo +git init +git remote add origin https://gitee.com/ApolloAuto/apollo.git +git clean -fd +git pull origin master +git pull +git checkout -b r5.5.0 origin/r5.5.0 +git branch -D master +```