VersionCtl/repo
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
開始行:
#topicpath();
/////////////////////////////////////////////////////////...
* 目次 [#c93151f1]
#contents();
/////////////////////////////////////////////////////////...
* repo とは [#l4410761]
- 複数の git リポジトリからなる開発ツリーを一元管理しやす...
- Google がリリースしており、 Android の開発で使用されて...
- [[本家(gitリポジトリ)>https://gerrit.googlesource.com...
/////////////////////////////////////////////////////////...
* command [#df164ab5]
//=======================================================...
** forall -pvc <command-line> [#b54ed48a]
- repo 管理下にある全 repository に対してユーザが指定した...
$ repo forall -pvc <command-line>
- <command-line> で複数のコマンドを実行したい場合は、ダブ...
# repo forall -pvc "git reset --hard HEAD; git pull --re...
//=======================================================...
** branches [#j26ed47a]
- repo 管理下にある全 repository の branch 状態を表示する
//=======================================================...
** checkout <branch-name> [#zd5d85c9]
- repo 管理下にある全 repository の branch を <branch-nam...
/////////////////////////////////////////////////////////...
* 全 branch の切り替え [#f4b16870]
+ リポジトリ名を除いた branch 名で checkout する
$ repo init -b <new-branch-name>
+ ひとまずファイル実体を全て消して、展開し直す
$ rm -rf *;
$ repo sync
$ repo start <new-branch-name>
/////////////////////////////////////////////////////////...
* manifest が更新されているかもしれない場合の更新方法 [#z...
- repo sync では manifest は更新されない。
- manifest の branch が "default" になっていて且つ upstre...
-- 下記の前提として、${REPOS_ROOT} に .repo や各リポジト...
-- manifest の更新
$ cd ${REPOS_ROOT}/.repo/manifests
$ git co -b <local-branch> <remote-branch>
$ git pull
-- manifest からリポジトリのエントリが削除されている場合...
$ cd ${REPOS_ROOT}/.repo
$ rm -rf projects project-objects; # cache の削除。これ...
-- manifest で管理されている各リポジトリの更新
$ cd ${REPOS_ROOT}
$ rm -rf * # .repo 以外を全て消す。 manifest から...
$ repo sync # ここで、 checkout 済の branch があっ...
$ repo forall "git checkout <local-branch>; git fetch --...
-- "--unshallow" オプションは、 git pull でも使用出来る。...
/////////////////////////////////////////////////////////...
* 「リポジトリが壊れたかな?」というときは [#a4ed1b8a]
- repo 管理下に、例えば hoge なるリポジトリがあったとする...
hoge/.git/
の中身が
.repo/projects/<manifestで指定されたパス>/hoge.git
.repo/project-objects/<manifestで指定されたパス>/hoge.git
配下への SymLink になっており、上記2つの hoge.git 両方揃...
これらが壊れている場合は、以下を実行する。~
但し、ローカルに commit して他所へ push していないものは...
$ rm -rf projects project-objects; # cache の削除
- 逆に言うと、リポジトリとしての実体は .repo 配下にあるた...
/////////////////////////////////////////////////////////...
* Links [#sabd22ce]
- [[repo のコマンド>http://uenoshin.hatenablog.com/entry/...
- [[git管理ツールRepoを入れてみよう>http://qiita.com/fuuu...
- [[Repo を使う --- Manifest ファイルの書き方>http://at-a...
終了行:
#topicpath();
/////////////////////////////////////////////////////////...
* 目次 [#c93151f1]
#contents();
/////////////////////////////////////////////////////////...
* repo とは [#l4410761]
- 複数の git リポジトリからなる開発ツリーを一元管理しやす...
- Google がリリースしており、 Android の開発で使用されて...
- [[本家(gitリポジトリ)>https://gerrit.googlesource.com...
/////////////////////////////////////////////////////////...
* command [#df164ab5]
//=======================================================...
** forall -pvc <command-line> [#b54ed48a]
- repo 管理下にある全 repository に対してユーザが指定した...
$ repo forall -pvc <command-line>
- <command-line> で複数のコマンドを実行したい場合は、ダブ...
# repo forall -pvc "git reset --hard HEAD; git pull --re...
//=======================================================...
** branches [#j26ed47a]
- repo 管理下にある全 repository の branch 状態を表示する
//=======================================================...
** checkout <branch-name> [#zd5d85c9]
- repo 管理下にある全 repository の branch を <branch-nam...
/////////////////////////////////////////////////////////...
* 全 branch の切り替え [#f4b16870]
+ リポジトリ名を除いた branch 名で checkout する
$ repo init -b <new-branch-name>
+ ひとまずファイル実体を全て消して、展開し直す
$ rm -rf *;
$ repo sync
$ repo start <new-branch-name>
/////////////////////////////////////////////////////////...
* manifest が更新されているかもしれない場合の更新方法 [#z...
- repo sync では manifest は更新されない。
- manifest の branch が "default" になっていて且つ upstre...
-- 下記の前提として、${REPOS_ROOT} に .repo や各リポジト...
-- manifest の更新
$ cd ${REPOS_ROOT}/.repo/manifests
$ git co -b <local-branch> <remote-branch>
$ git pull
-- manifest からリポジトリのエントリが削除されている場合...
$ cd ${REPOS_ROOT}/.repo
$ rm -rf projects project-objects; # cache の削除。これ...
-- manifest で管理されている各リポジトリの更新
$ cd ${REPOS_ROOT}
$ rm -rf * # .repo 以外を全て消す。 manifest から...
$ repo sync # ここで、 checkout 済の branch があっ...
$ repo forall "git checkout <local-branch>; git fetch --...
-- "--unshallow" オプションは、 git pull でも使用出来る。...
/////////////////////////////////////////////////////////...
* 「リポジトリが壊れたかな?」というときは [#a4ed1b8a]
- repo 管理下に、例えば hoge なるリポジトリがあったとする...
hoge/.git/
の中身が
.repo/projects/<manifestで指定されたパス>/hoge.git
.repo/project-objects/<manifestで指定されたパス>/hoge.git
配下への SymLink になっており、上記2つの hoge.git 両方揃...
これらが壊れている場合は、以下を実行する。~
但し、ローカルに commit して他所へ push していないものは...
$ rm -rf projects project-objects; # cache の削除
- 逆に言うと、リポジトリとしての実体は .repo 配下にあるた...
/////////////////////////////////////////////////////////...
* Links [#sabd22ce]
- [[repo のコマンド>http://uenoshin.hatenablog.com/entry/...
- [[git管理ツールRepoを入れてみよう>http://qiita.com/fuuu...
- [[Repo を使う --- Manifest ファイルの書き方>http://at-a...
ページ名: