最終更新:2023-06-20 (火) 00:37:48 (640d)
repo
Top / repo
http://source.android.com/source/using-repo.html
Ubuntu/パッケージ
ダウンロード
https://source.android.com/source/downloading.html
mkdir ~/bin PATH=~/bin:$PATH curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo chmod a+x ~/bin/repo
- Ubuntuの場合、.profileでLinux/~/binにパスが通っている
旧
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
コマンド
repo init - Initialize repo in the current directory
repo init -u URL [OPTIONS]
$ repo init -u https://android.googlesource.com/platform/manifest
$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1
- -u: specify a URL from which to retrieve a manifest repository. The common manifest can be found at
https://android.googlesource.com/platform/manifest
- -m: select a manifest file within the repository. If no manifest name is selected, the default is default.xml.
- -b: specify a revision, i.e., a particular manifest-branch.
- 指定しない時はbaster
repo sync - Update working tree to the latest revision
repo help
一覧
- repo abandon? - Permanently abandon a development branch
- repo branch - View current topic branches
- repo branches? - View current topic branches
- repo checkout - Checkout a branch for development
- repo cherr?y-pick - Cherry-pick a change.
- repo diff - Show changes between commit and working tree
- repo download? - Download and checkout a change
- repo grep? - Print lines matching a pattern
- repo init - Initialize repo in the current directory
- repo list? - List projects and their associated directories
- repo overview? - Display overview of unmerged project branches
- repo prune? - Prune (delete) already merged topics
- repo rebase? - Rebase local branches on upstream branch
- repo smartsync? - Update working tree to the latest known good revision
- repo stage? - Stage file(s) for commit
- repo start - Start a new branch for development
- repo status - Show the working tree status
- repo sync - Update working tree to the latest revision
- repo upload? - Upload changes for code review
メモ
export REPO_TRACE=1
- is handy to see what git commands are called by repo
ブランチ名を調べる (git branch -a)
現在のブランチ
- repo branch/repo branches?
- 現在のブランチの名前の前にはアスタリスクが付く
lsで見る
$ ls -1 .repo/manifests.git/logs/refs/remotes/origin/
gitを使う
git --git-dir .repo/manifests/.git/ branch -a
Webで見る
ブランチを切り替え
$ repo init -b froyo
repo syncでCygwinでエラーになるとき
- str\\escape.rsが作れなくてエラーになるのでstr/escape.rsを作る