How to Find and Clone a Repository from chromium Git repositories

Updated

chromium.googlesource.com is Google's Git hosting site for Chromium-related source code. It lists repositories alphabetically, each with a name and a short description. To get code, find the repository name in that list, turn it into a Git URL of the form https://chromium.googlesource.com/<name>, and clone it with standard Git. You need Git installed and network access to the host; the page itself does not state that cloning requires a sign-in.

Find the repository you need

The landing page ("Git repositories on chromium") is a directory. Each entry has:

  • Name — the repository path, for example angle/angle or aosp/platform/system/core.
  • Description — a short note on what the repo contains or where it came from.

Names are listed alphabetically, so scan or use your browser's find function on the page. Watch for entries marked (MOVED): these note that the code was merged or renamed elsewhere, for example aosp/platform/external/libchrome (MOVED) to chromiumos/platform/libchrome. For those, follow the note rather than cloning the old path.

Some descriptions also identify the repo as a ChromiumOS fork of an Android source project, such as aosp/platform/system/bt. That tells you the code's upstream origin, which matters if you need to compare against or contribute back to the original project.

Build the clone URL

Repository names map directly onto URLs under the host:

https://chromium.googlesource.com/<repository-name>

Examples using names from the listing:

Repository name Clone URL
angle/angle https://chromium.googlesource.com/angle/angle
android_ndk https://chromium.googlesource.com/android_ndk
aosp/platform/system/core https://chromium.googlesource.com/aosp/platform/system/core

Clone it

  1. Confirm Git is installed: run git --version. A version number means you're ready.
  2. Clone with the URL you built:
git clone https://chromium.googlesource.com/angle/angle
  1. Expected result: Git creates a local directory named after the last part of the path (here angle) and checks out the default branch. A progress line ending in "done." confirms success.

To clone into a specific folder, add a target name: git clone <url> my-folder.

Check out a specific revision or branch

After cloning, list branches with git branch -r and switch with git checkout <branch>. To inspect history without a full checkout, git log --oneline in the cloned directory shows recent commits. If you only need a snapshot, git clone --depth 1 <url> fetches just the latest commit and is faster for large repositories.

Sign-in, passwords, and code review

The page header includes Sign in, Generate Password, Revoke Passwords, and Code Review links. These relate to authenticated access and the review workflow, not to browsing or cloning public code. If a clone prompts for credentials, use the password generated through that flow rather than your account password. The page does not state which repositories, if any, are restricted, so treat sign-in as something you use only when a specific operation asks for it.

Common snags

  • "Repository not found" — the name is probably mistyped or the repo was moved. Recheck the exact listing entry and any (MOVED) note.
  • Clone is very slow — large repos such as platform forks take time; try --depth 1 for a shallow copy.
  • Authentication prompt — generate a password from the site's link and use it when Git asks.
  • Looking for the browser's source — the listing covers many projects; use the description column to pick the right one rather than guessing from the name alone.