补充对 REPO_URL 的修改.

Signed-off-by: ithink.chan <chenyang@autoai.com>
This commit is contained in:
ithink.chan 2020-01-08 16:56:41 +08:00
parent 3971e42466
commit 4ad2a22732
1 changed files with 32 additions and 10 deletions

View File

@ -1,34 +1,56 @@
# Repo 使用 # Repo 使用
```sh
vim /usr/bin/repo
```
将 REPO_URL 修改为 '<https://mirrors.tuna.tsinghua.edu.cn/git/git-repo>'。
## 创建并切换分支 ## 创建并切换分支
```sh
repo start <新分支名> --all repo start <新分支名> --all
```
## 查看分支 ## 查看分支
```sh
repo branches repo branches
```
## 切换分支 ## 切换分支
```sh
repo checkout <远程分支名> repo checkout <远程分支名>
```
## 提交代码 ## 提交代码
```sh
git commit -asm <Commit信息> git commit -asm <Commit信息>
```
## Push 代码 ## Push 代码
```sh
git push <远程主机名> <本地分支名>:refs/for/<远程分支名> git push <远程主机名> <本地分支名>:refs/for/<远程分支名>
git push <远程主机名> <本地分支名>:refs/drafts/<远程分支名> git push <远程主机名> <本地分支名>:refs/drafts/<远程分支名>
```
## Gerrit 服务器 Android 使用 ## Gerrit 服务器 Android 使用
ACRN ACRN
```sh
repo init -u ssh://cheny@10.20.0.34:29418/manifests -b oa/gordon_peak_acrn/a90/rel -m manifest-AAH.xml repo init -u ssh://cheny@10.20.0.34:29418/manifests -b oa/gordon_peak_acrn/a90/rel -m manifest-AAH.xml
repo sync -j<线程数> repo sync -j<线程数>
```
Nitc: Nitc:
```sh
repo init -u ssh://chensf@10.20.3.17:29418/manifests -b nitc repo init -u ssh://chensf@10.20.3.17:29418/manifests -b nitc
repo sync -j<线程数> repo sync -j<线程数>
```