From 2cbbaf10f5fd2dd17e008c174443331a108f52e3 Mon Sep 17 00:00:00 2001 From: lion187 Date: Tue, 27 Nov 2018 14:14:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=BB=BA=E6=96=87=E4=BB=B6=20Software?= =?UTF-8?q?/Application/Repo/Repo=5F=E4=BD=BF=E7=94=A8.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Software/Application/Repo/Repo_使用.md | 28 ++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Software/Application/Repo/Repo_使用.md diff --git a/Software/Application/Repo/Repo_使用.md b/Software/Application/Repo/Repo_使用.md new file mode 100644 index 0000000..ca914bd --- /dev/null +++ b/Software/Application/Repo/Repo_使用.md @@ -0,0 +1,28 @@ +# Repo 使用 + +# 创建并切换分支 + + repo start <新分支名> --all + +# 查看分支: + + repo branches + +# 切换分支: + + repo checkout <远程分支名> + +# 提交代码: + + git commit -asm + + +# Push 代码: + + git push <远程主机名> <本地分支名>:refs/for/<远程分支名> + git push <远程主机名> <本地分支名>:refs/drafts/<远程分支名> + +## Gerrit 服务器 Android 使用 + + repo init -u ssh://chensf@10.20.3.17:29418/manifests -b nitc + repo sync -j<线程数>