Managing Cloud Source Repositories

This document describes how to manage Cloud Source Repositories from within Visual Studio.

Before you begin

Access Cloud Source Repositories

To access Cloud Source Repositories, select Team > Manage Connections.

Display of the Team Explorer window with the list of available
repositories

A list of your repositories displays in the Team Explorer.

For first-time users, this list will be empty until you clone a repository.

Create or clone a repository

In Team Explorer, you can click the Clone or Create link to open the Clone Google Cloud Source repository dialog and create a new repository or clone an existing one to your local machine.

Dialog box with a field for selecting a project and a repository. An Add
new button allows you to create a new repository. The dialog also provides a
field for entering a path to clone the source code to. A Browse button allows
you to open a file explorer window to navigate to the clone location instead.

To create a new repository:

  1. Click the Clone or Create link.

  2. Select a Google Cloud project in the Project drop-down menu.

  3. Click Add new.

    The Add a new repository dialog displays.

  4. Enter a Repository Name.

  5. Click OK.

To clone an existing repository:

  1. Click the Clone or Create link.

  2. Select a Google Cloud project in the Project drop-down menu.

  3. Select a repository in the Repository drop-down menu.

  4. Enter the location where you want to clone the source code to in the Clone to field.

    1. Or, you can click Browse to open the file explorer and navigate to the location.
  5. Click Clone.

    Your source code is now in the specified location, and the cloned repository displays in Team Explorer.

Performing Git tasks

  • You can perform all git tasks from within Visual Studio. For more information on these tasks, refer to the Git reference guide.

  • You can also execute these git commands from a shell.