Wählen Sie Team > Verbindungen verwalten aus, um auf Cloud Source Repositories zuzugreifen.
Eine Liste Ihrer Repositories wird im Team Explorer angezeigt.
Bei Erstnutzern ist diese Liste leer, bis ein Repository geklont wird.
Repository erstellen oder klonen
Im Team Explorer können Sie auf den Link Klonen oder Erstellen klicken, um das Dialogfeld Google Cloud Source Repository klonen zu öffnen und ein neues Repository zu erstellen bzw. ein vorhandenes auf Ihrem lokalen Rechner zu klonen.
So erstellen Sie ein neues Repository:
Klicken Sie auf den Link Klonen oder Erstellen.
Wählen Sie im Drop-down-Menü Projekt ein Google Cloud Projekt aus.
Klicken Sie auf Neu hinzufügen.
Das Dialogfeld Neues Repository hinzufügen wird angezeigt.
Geben Sie einen Repository-Namen ein.
Klicken Sie auf OK.
So klonen Sie ein vorhandenes Repository:
Klicken Sie auf den Link Klonen oder Erstellen.
Wählen Sie im Drop-down-Menü Projekt ein Google Cloud Projekt aus.
Wählen Sie im Drop-down-Menü Repository ein Repository aus.
Geben Sie in das Feld Klonen in einen Speicherort ein, in dem der Quellcode geklont werden soll.
Sie können auch auf Durchsuchen klicken, um den Datei-Explorer zu öffnen und zum Speicherort zu wechseln.
Klicken Sie auf Klonen.
Ihr Quellcode befindet sich jetzt am angegebenen Speicherort und das geklonte Repository wird im Team Explorer angezeigt.
Git-Aufgaben ausführen
Sie können alle Git-Aufgaben über Visual Studio ausführen. Weitere Informationen zu diesen Aufgaben finden Sie im Git-Referenzhandbuch.
Diese Git-Befehle lassen sich auch über eine Shell ausführen.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-08-17 (UTC)."],[],[],null,["# Managing Cloud Source Repositories\n\n| **Beta**\n|\n|\n| This feature is subject to the \"Pre-GA Offerings Terms\" in the General Service Terms section\n| of the [Service Specific Terms](/terms/service-terms#1).\n|\n| Pre-GA features are available \"as is\" and might have limited support.\n|\n| For more information, see the\n| [launch stage descriptions](/products#product-launch-stages).\n\nThis document describes how to manage Cloud Source Repositories from\nwithin Visual Studio.\n\nBefore you begin\n----------------\n\n- [Enable access to Cloud Source Repositories](https://console.cloud.google.com/marketplace/details/google/sourcerepo.googleapis.com)\n for your project.\n\n - If you have more than 1 project, select the correct project from the drop-down menu in the title bar.\n- Install [Git for Windows](https://git-scm.com/download/win) if you have not\n done so already.\n\n- Verify that you have\n [Git Credential Manager for Windows](https://github.com/Microsoft/Git-Credential-Manager-for-Windows)\n installed by running the following command in your local terminal:\n\n git credential-manager version\n\nAccess Cloud Source Repositories\n--------------------------------\n\nTo access Cloud Source Repositories, select\n**Team** \\\u003e **Manage Connections**.\n\nA list of your repositories displays in the Team Explorer.\n\nFor first-time users, this list will be empty until you clone a repository.\n\nCreate or clone a repository\n----------------------------\n\nIn Team Explorer, you can click the **Clone or Create** link to open the\n**Clone Google Cloud Source repository** dialog and create a new repository or\nclone an existing one to your local machine.\n\nTo create a new repository:\n\n1. Click the **Clone or Create** link.\n\n2. Select a Google Cloud project in the **Project** drop-down menu.\n\n3. Click **Add new**.\n\n The **Add a new repository** dialog displays.\n4. Enter a **Repository Name**.\n\n5. Click **OK**.\n\nTo clone an existing repository:\n\n1. Click the **Clone or Create** link.\n\n2. Select a Google Cloud project in the **Project** drop-down menu.\n\n3. Select a repository in the **Repository** drop-down menu.\n\n4. Enter the location where you want to clone the source code to in the\n **Clone to** field.\n\n 1. Or, you can click **Browse** to open the file explorer and navigate to the location.\n5. Click **Clone**.\n\n Your source code is now in the specified location, and the cloned repository\n displays in Team Explorer.\n\nPerforming Git tasks\n--------------------\n\n- You can perform all git tasks from within Visual Studio. For more information\n on these tasks, refer to the\n [Git reference guide](https://git-scm.com/book/it/v2/Git-in-Other-Environments-Git-in-Visual-Studio).\n\n- You can also execute these git commands from a shell."]]