Skip to content

Commit

Permalink
D-Kit : Add the git operations to the apollo_installation_cn.md file (A…
Browse files Browse the repository at this point in the history
  • Loading branch information
lishuanghua authored Nov 30, 2020
1 parent aefd876 commit 2ef47f1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/D-kit/Waypoint_Following/apollo_installation_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

0 comments on commit 2ef47f1

Please sign in to comment.