几个有用的 repo command

repo abandon --help

 

Usage: repo abandon <branchname> [<project>...]

 

This subcommand permanently abandons a development branch by

deleting it (and all its history) from your localrepository.

 

It is equivalent to "git branch -D<branchname>".

 

Options:

  -h, --help  show this help message and exit

e.g. repoabandon froyo_tagcan removeone branch named froyo_tag.


Tip: "git branch -D <branchname>" can only be executed if thecurrent working directory contains git repository.

However, “repo abandon” can be executed in root directorythat do not include git repository.

 

repo branches --help

Usage: repo branches [<project>...]

 

Summarizes the currently available topic branches.

 

Branch Display

--------------

 

The branch display output by this command is organized intofour

columns of information; for example:

 

 *P nocolor                   | in repo

    repo2                     |

 

The first column contains a * if the branch is the currently

checked out branch in any of the specified projects, or ablank

if no project has the branch checked out.

 

The second column contains either blank, p or P, dependingupon

the upload status of the branch.

 

 (blank): branch notyet published by repo upload

       P: all commitswere published by repo upload

       p: only somecommits were published by repo upload

 

The third column contains the branch name.

 

The fourth column (after the | separator) lists the projectsthat

the branch appears in, or does not appear in.  If no project list

is shown, then the branch appears in all projects.

 

Options:

  -h, --help  show this help message and exit

 

repo checkout --help

Usage: repo checkout <branchname> [<project>...]

 

Options:

  -h, --help  show this help message and exit

 

repo diff --help

Usage: repo diff [<project>...]

 

Options:

  -h, --help show this help message and exit

 

repo download --help

Usage: repo download {project change[/patchset]}...

 

Options:

  -h, --help  show this help message and exit

 

repo grep --help

Usage: repo grep {pattern | -e pattern} [<project>...]

 

Options:

  -h, --help            show this help message and exit

 

  Sources:

    --cached            Search the index, instead of thework tree

    -r TREEish,--revision=TREEish

                       Search TREEish, instead of the work tree

 

  Pattern:

    -e PATTERN          Pattern to search for

    -i,--ignore-case   Ignore case differences

    -a, --text          Process binary files as if they weretext

    -I                  Don't match the pattern inbinary files

    -w,--word-regexp   Match the pattern only atword boundaries

    -v,--invert-match  Select non-matching lines

    -G,--basic-regexp  Use POSIX basic regexpfor patterns (default)

    -E,--extended-regexp

                       Use POSIX extended regexp for patterns

    -F, --fixed-strings

                       Use fixed strings (not regexp) for pattern

 

  Pattern Grouping:

    --all-match         Limit match to lines that have allpatterns

    --and, --or,--not  Boolean operators to combinepatterns

    -(, -)              Boolean operator grouping

 

  Output:

    -n                  Prefix the line number tomatching lines

    -C CONTEXT          Show CONTEXT lines around match

    -B CONTEXT          Show CONTEXT lines before match

    -A CONTEXT          Show CONTEXT lines after match

    -l, --name-only,--files-with-matches

                       Show only file names containing matching lines

    -L,--files-without-match

                       Show only file names not containing matching lines

 

repo init --help

Usage: repo init [options]

 

Options:

  -h, --help            show this help message and exit

 

  Logging options:

    -q, --quiet         be quiet

 

  Manifest options:

    -u URL,--manifest-url=URL

                       manifest repository location

    -b REVISION, --manifest-branch=REVISION

                       manifest branch or revision

    -m NAME.xml,--manifest-name=NAME.xml

                       initial manifest file

    --mirror            mirror the forrest

 

  repo Versionoptions:

   --repo-url=URL      reporepository location

   --repo-branch=REVISION

                       repo branch or revision

--no-repo-verify    do not verify repo source code

repo prune --help

Usage: repo prune[<project>...]

 

Options:

 -h, --help  show this help messageand exit

 

repo stage --help

Usage: repo stage -i[<project>...]

 

Options:

 -h, --help         show this helpmessage and exit

 -i, --interactive  use interactivestaging

 

repo start --help

Usage: repo start<newbranchname> [--all | <project>...]

 

Options:

 -h, --help  show this help messageand exit

 --all       begin branch in allprojects

 

repo status --help

Usage: repo status[<project>...]

 

Options:

 -h, --help  show this help messageand exit

 

repo sync --help

Usage: repo sync[<project>...]

 

Options:

 -h, --help          show this helpmessage and exit

 -l, --local-only    only updateworking tree, don't fetch

 -n, --network-only  fetch only,don't update working tree

 -d, --detach        detachprojects back to manifest revision

 

 repo Version options:

    --no-repo-verify  do not verify repo source code

 

repo upload --help

Usage: repo upload [--re --cc]{[<project>]... | --replace <project>}

 

Options:

 -h, --help            show thishelp message and exit

 --replace             Uploadreplacement patchesets from this branch

 --re=REVIEWERS, --reviewers=REVIEWERS

                        Request reviews fromthese people.

 --cc=CC               Also sendemail to these email addresses.

 

repo version --help

Usage: repo version

 

Options:

 -h, --help  show this help messageand exit

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值