REPO(1)
π REPO(1) β the repo manual page, sync edition π¦
okay bestie, so this is the manual for repo sync, from the Repo Manual. It's literally the page for the repo sync command. Grab a snack, we're going in π
β¨ NAME β¨
repo β it's the manual page for repo sync, periodt.
πΈ SYNOPSIS πΈ
repo sync [<project>...]
π DESCRIPTION π
Summary
Update working tree to the latest revision β¨
π OPTIONS π
-h,--helpβ shows this help message and then dips out (exits).-j JOBS,--jobs=JOBSβ how many jobs run in parallel. (default: based on number of CPU cores)--jobs-network=JOBSβ how many network jobs run in parallel (defaults to--jobsor1). Ngl, this one is ignored unless--no-interleavedis set.--jobs-checkout=JOBSβ how many local checkout jobs run in parallel (defaults to--jobsor based on number of CPU cores). Also ignored unless--no-interleavedis set, fr fr.-f,--force-brokenβ obsolete option (to be deleted in the future). yeah she's ancient, lowkey on her way out π--fail-fastβ stop syncing after the first error is hit. no second chances, bestie.--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-checkoutβ force checkout even if it results in throwing away uncommitted modifications. β οΈ 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.--rebaseβ rebase local commits regardless of whether they are published.-l,--local-onlyβ only update the working tree, don't fetch. stay local, she's an introvert π§--no-manifest-update,--nmuβ use the existing manifest checkout as-is. (do not update to the latest revision)--interleavedβ fetch and checkout projects in parallel (this is the default, iconic behavior β¨).--no-interleavedβ fetch and checkout projects in phases.-n,--network-onlyβ fetch only, don't update the working tree.-d,--detachβ detach projects back to the manifest revision.-c,--current-branchβ fetch only the current branch from the server.--no-current-branchβ fetch all branches from the server.-m NAME.xml,--manifest-name=NAME.xmlβ temporary manifest to use for this sync.-g GROUP,--groups=GROUPβ sync projects matching the specific groups. Not persistent, unlike when used oninit.--clone-bundleβ enable use of/clone.bundleon HTTP/HTTPS.--no-clone-bundleβ disable use of/clone.bundleon 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.--recurse-submodulesβ sync submodules from the server.--no-recurse-submodulesβ don't sync submodules from the server.--use-superprojectβ use the manifest superproject to sync projects; implies-c.--no-use-superprojectβ disable use of manifest superprojects.--superproject-revision=SUPERPROJECT_REVISIONβ sync to superproject revision (applies to outer manifest).--tagsβ fetch tags.--no-tagsβ don't fetch tags (default).--optimized-fetchβ only fetch projects fixed to sha1 if revision does not exist locally.--retry-fetches=RETRY_FETCHESβ number of times to retry fetches on transient errors.--pruneβ delete refs that no longer exist on the remote (default).--no-pruneβ do not delete refs that no longer exist on the remote.--auto-gcβ run garbage collection on all synced projects.--no-auto-gcβ do not run garbage collection on any projects (default).-s,--smart-syncβ smart sync using manifest from the latest known good build.--no-smart-syncβ disable smart sync and sync to ToT instead.-t SMART_TAG,--smart-tag=SMART_TAGβ smart sync using manifest from a known tag.
π«Ά Logging options
-v,--verboseβ show all output. spill the tea, everything.-q,--quietβ only show errors. silence is golden β¨
π Multi-manifest options
--outer-manifestβ operate starting at the outermost manifest.--no-outer-manifestβ do not operate on outer manifests.--this-manifest-onlyβ only operate on this (sub)manifest.--no-this-manifest-only,--all-manifestsβ operate on this manifest and its submanifests.
π repo Version options
--no-repo-verifyβ do not verify repo source code.
π post-sync hooks
--no-verifyβ Do not run the post-sync hook.--verifyβ Run the post-sync hook without prompting.--ignore-hooksβ Do not abort if post-sync hooks fail.
Run repo help sync to view the detailed manual. (yes that's really what it says, go look π)
π₯ DETAILS π₯
The repo sync command synchronizes local project directories with the remote repositories specified in the manifest. If a local project does not yet exist, it will clone a new local directory from the remote repository and set up tracking branches as specified in the manifest. If the local project already exists, repo sync will update the remote branches and rebase any new local changes on top of the new remote changes. it's giving "stay in sync, bestie" π
repo sync will synchronize all projects listed at the command line. Projects can be specified either by name, or by a relative or absolute path to the project's local directory. If no projects are specified, repo sync will synchronize all projects listed in the manifest.
The -d/--detach option can be used to switch specified projects back to the manifest revision. This option is especially helpful if the project is currently on a topic branch, but the manifest revision is temporarily needed.
The -s/--smart-sync option can be used to sync to a known good build as specified by the manifest-server element in the current manifest. The -t/--smart-tag option is similar and allows you to specify a custom tag/label.
The -u/--manifest-server-username and -p/--manifest-server-password options can be used to specify a username and password to authenticate with the manifest server when using the -s or -t option.
If -u and -p are not specified when using the -s or -t option, repo sync will attempt to read authentication credentials for the manifest server from the user's .netrc file.
repo sync will not use authentication credentials from -u/-p or .netrc if the manifest server specified in the manifest file already includes credentials.
By default, all projects will be synced. The --fail-fast option can be used to halt syncing as soon as possible when the first project fails to sync.
The --force-sync option can be used to overwrite existing git directories if they have previously been linked to a different object directory. β οΈ WARNING: This may cause data to be lost since refs may be removed when overwriting.
The --force-checkout option can be used to force git to switch revs even if the index or the working tree differs from HEAD, and if there are untracked files. β οΈ WARNING: This may cause data to be lost since uncommitted changes may be removed.
The --force-remove-dirty option can be used to remove previously used projects with uncommitted changes. β οΈ WARNING: This may cause data to be lost since uncommitted changes may be removed with projects that no longer exist in the manifest.
The --no-clone-bundle option disables any attempt to use $URL/clone.bundle to bootstrap a new Git repository from a resumeable bundle file on a content delivery network. This may be necessary if there are problems with the local Python HTTP client or proxy configuration, but the Git binary works.
The --recurse-submodules option enables syncing Git submodules of all projects from the server. The --no-recurse-submodules option disables syncing Git submodules, even when a project has sync-s="true" in the manifest.
The --fetch-submodules and --no-fetch-submodules options are deprecated aliases for --recurse-submodules and --no-recurse-submodules, respectively. (old news, still works, but likeβ¦ retired π)
The -c/--current-branch option can be used to only fetch objects that are on the branch specified by a project's revision.
The --optimized-fetch option can be used to only fetch projects that are fixed to a sha1 revision if the sha1 revision does not already exist locally.
The --prune option can be used to remove any refs that no longer exist on the remote.
The --auto-gc option can be used to trigger garbage collection on all projects. By default, repo does not run garbage collection.
π¦ SSH Connections
If at least one project remote URL uses an SSH connection (ssh://, git+ssh://, or user@host:path syntax) repo will automatically enable the SSH ControlMaster option when connecting to that host. This feature permits other projects in the same repo sync session to reuse the same SSH tunnel, saving connection setup overheads. iconic efficiency, no cap β¨
To disable this behavior on UNIX platforms, set the GIT_SSH environment variable to ssh. For example:
export GIT_SSH=ssh repo sync
π Compatibility
This feature is automatically disabled on Windows, due to the lack of UNIX domain socket support. (Windows, you're on your own bestie π)
This feature is not compatible with url.insteadof rewrites in the user's ~/.gitconfig. repo sync is currently not able to perform the rewrite early enough to establish the ControlMaster tunnel.
If the remote SSH daemon is Gerrit Code Review, version 2.0.10 or later is required to fix a server side protocol bug.
π that's the whole page! every flag, every default, every β οΈ warning β all of it, preserved, just with β¨vibesβ¨ now.
okay and for the lil sign-off: this page is from repo sync, dated September 2026, part of the REPO(1) manual. slay, go sync something, mwah π
π
π¦ where this page comes from
- fedora 43: repo 2.69-1.fc43 Β· Apache-2.0
- fedora 44: repo 2.69-1.fc44 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms