Browsing Repositories

This topic covers how to browse a repository in Google Cloud Source Repositories and how to switch from repository to another.

Cloud Source Repositories makes it easy to view the repositories that are important to you. This topic describes how to view all of the repositories available to you, as well as how to quickly access specific repositories.

Browsing to a repository

  1. Open the console.

    Open the Source View in the Console

    The first screen that opens is called the My Source. This screen contains two sections:

    • Starred. This section displays repositories, branches, files and folders that you identify as particularly important.

    • Recently viewed. This section displays repositories, branches, files and folders that you have viewed recently.

  2. Click the name of a repository to view its contents.

If the repository you want to view isn't listed in the Starred or Recently Viewed section, click View All Repositories to search for it. For more information, see viewing all repositories.

Viewing all repositories

If you don't see the repository you want to open in the My Source, you can search for it by viewing all repositories.

To view all repositories:

  1. Open the My Source view in the console:

    Open the Source View in the Console

  2. Click View All Repositories, located in the top right corner.

    The All Repositories screen opens. From this screen, you can scroll through the list of all repositories available to you.

    Alternatively, use the Breadcrumb toolbar to browse for a specific repository. This toolbar displays your current location in the repository and allows you to move quickly to another location such as another repository, or another location within a repository, such as a file, branch, or commit.

  3. Click the name of a repository to view its contents.

Selecting a different view of a repository

By default, the code search and source browsing interface opens a repository to the master branch. You can also view a specific branch for that repository, or view the repository as it existed at a specific commit or tag.

To select a different view of the repository:

  1. From the Breadcrumb toolbar, click the Branch/Commit/Tag menu. In the submenu, use the branch name, a tag name, or a search box to select a branch.
  2. Select the state of the repository you want to view:
    • To select a branch using a branch name, select Branch and then click the name of the branch.
    • To select a branch using a commit id, select Commit and then click the commit id.
    • To select a branch using a tag name, select Tag and then click the tag name.
    • To search for a branch, commit, or tag, select the corresponding item and type a search term in the search box.

Switch to a different repository

To switch to a different repository, select the repository from the Breadcrumb toolbar.

By default, the code search and source browsing interface opens a repository to the master branch.

Starring items

You can identify important items such as repositories, folders, files, and so on, by starring them. You can find starred items in the Starred section of the My Source screen.

To star an item, click the Star icon when viewing that item.

You can return the My Source by clicking Back to My Source. Your repository now appears in the Starred Repositories section.

Was this page helpful? Let us know how we did:

Send feedback about...

Cloud Source Repositories