repo帮助信息

环境

sice@T:/mnt/aosp$ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.1 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.1 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
 

 查看repo帮助信息

sice@T:/mnt/aosp$ repo help
usage: repo COMMAND [ARGS]
The most commonly used repo commands are:
  abandon        Permanently abandon a development branch
  branch         View current topic branches
  branches       View current topic branches
  checkout       Checkout a branch for development
  cherry-pick    Cherry-pick a change.
  diff           Show changes between commit and working tree
  diffmanifests  Manifest diff utility
  download       Download and checkout a change
  gitc-delete    Delete a GITC Client.
  gitc-init      Initialize a GITC Client.
  grep           Print lines matching a pattern
  info           Get info on the manifest branch, current branch or unmerged branches
  init           Initialize a repo client checkout in the current directory
  list           List projects and their associated directories
  overview       Display overview of unmerged project branches
  prune          Prune (delete) already merged topics
  rebase         Rebase local branches on upstream branch
  smartsync      Update working tree to the latest known good revision
  stage          Stage file(s) for commit
  start          Start a new branch for development
  status         Show the working tree status
  sync           Update working tree to the latest revision
  upload         Upload changes for code review
See 'repo help ' for more information on a specific command.
See 'repo help --all' for a complete list of recognized commands.
Bug reports: https://bugs.chromium.org/p/gerrit/issues/entry?template=Repo+tool+issue
 

查看repo sync帮助信息

 repo help sync

Summary

Update working tree to the latest revision

Usage: repo sync [...]

Options:
  -h, --help            show this help message and exit
  -j JOBS, --jobs=JOBS  number of jobs to run in parallel (default: 8; based
                        on number of CPU cores)
  --jobs-network=JOBS   number of network jobs to run in parallel (defaults to
                        --jobs)
  --jobs-checkout=JOBS  number of local checkout jobs to run in parallel
                        (defaults to --jobs)
  -f, --force-broken    obsolete option (to be deleted in the future)
  --fail-fast           stop syncing after first error is hit
  --force-sync          overwrite an existing git directory if it needs to
                        point to a different object directory. WARNING: this
                        may cause loss of data
  --force-remove-dirty  force remove projects with uncommitted modifications
                        if projects no longer exist in the manifest. WARNING:
                        this may cause loss of data
  -l, --local-only      only update working tree, don't fetch
  --no-manifest-update, --nmu
                        use the existing manifest checkout as-is. (do not
                        update to the latest revision)
  -n, --network-only    fetch only, don't update working tree
  -d, --detach          detach projects back to manifest revision
  -c, --current-branch  fetch only current branch from server
  --no-current-branch   fetch all branches from server
  -m NAME.xml, --manifest-name=NAME.xml
                        temporary manifest to use for this sync
  --clone-bundle        enable use of /clone.bundle on HTTP/HTTPS
  --no-clone-bundle     disable use of /clone.bundle on HTTP/HTTPS
  -u MANIFEST_SERVER_USERNAME, --manifest-server-username=MANIFEST_SERVER_USERNAME
                        username to authenticate with the manifest server
  -p MANIFEST_SERVER_PASSWORD, --manifest-server-password=MANIFEST_SERVER_PASSWORD
                        password to authenticate with the manifest server
  --fetch-submodules    fetch submodules from server
  --use-superproject    use the manifest superproject to sync projects;
 

实用命令

当A下载了一份AOSP源码,怎么share给B?只需要A把AOSP源码根目录的.repo打包给B,B解压后运行repo sync -l 即可 

<完> 

你可能感兴趣的:(ubuntu,java,服务器)