简体   繁体   English

Visual Studio 2019:如何将您的项目保存到 Azure DevOps?

[英]Visual Studio 2019: how to save your project to Azure DevOps?

I am new to Visual Studio and Azure DevOps.我是 Visual Studio 和 Azure DevOps 的新手。 I have created an ASP.NET and C# project on Visual Studio, and now I want to save it to an Azure DevOps repo.我在 Visual Studio 上创建了 ASP.NET 和 C# 项目,现在我想将其保存到 Azure DevOps 存储库中。 This repo exists and I have access to it.这个 repo 存在,我可以访问它。

How to save this project to that repo from within Visual Studio 2019?如何从 Visual Studio 2019 中将此项目保存到该存储库?

Apologies if it sounds silly but I could not find a decent tutorial showing this.抱歉,如果这听起来很愚蠢,但我找不到一个像样的教程来展示这一点。

  1. Navigate to the Push view in Team Explorer by choosing the Visual Studio Unpublished Changes Status Bar icon in the status bar通过选择状态栏中的 Visual Studio 未发布更改状态栏图标导航到团队资源管理器中的推送视图在此处输入图像描述 . . You can also select Sync from the Home view in Team Explorer.您还可以从团队资源管理器的主页视图中同步 select。

  2. In the Push view in Team Explorer, select the Publish Git Repo button under Push to Visual Studio Team Services.在 Team Explorer 的 Push 视图中,select 在 Push to Visual Studio Team Services 下的 Publish Git Repo 按钮。

    在此处输入图像描述

  3. Verify your email and select your account in the Team Services Domain drop-down.在 Team Services Domain 下拉列表中验证您的 email 和 select 您的帐户。

  4. Enter your repository name and select Publish repository.输入您的存储库名称和 select 发布存储库。

    在此处输入图像描述

This creates a new project in your account with the same name as the repository.这会在您的帐户中创建一个与存储库同名的新项目。 To create the repo in an existing project, click Advanced next to Repository name and select a project.要在现有项目中创建存储库,请单击存储库名称和 select 项目旁边的高级。

  1. Your code is now in a Git repo in Azure Repos.您的代码现在位于 Azure 存储库中的 Git 存储库中。 You can view your code on the web by selecting See it on the web.您可以通过选择在 web 上查看代码来查看 web 上的代码。

    在此处输入图像描述

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何解决与 Azure Devops 和 Visual Studio 2019 的合并冲突 - How to resolve merge conflicts with Azure Devops and Visual Studio 2019 Visual Studio 2019 中的 Azure DevOps 错误 - Azure DevOps Error within visual studio 2019 在 Visual Studio 2019 中仅将 .gitattributes 和 .gitignore 推送到 Azure devops - Only .gitattributes and .gitignore is pushed to Azure devops in Visual Studio 2019 在 Visual Studio 2019 社区中克隆 Azure DevOps 存储库时遇到问题 - Having problems cloning a Azure DevOps repository in Visual Studio 2019 Community 从 Azure DevOps UI 克隆 git repo 启动 Visual Studio 2017 而不是 Visual Studio 2019 - Clone git repo from Azure DevOps UI launches Visual Studio 2017 instead of Visual Studio 2019 如何将现有的 Visual Studio 解决方案从 TFVC 项目移动到 Azure DevOps 上的 Git 项目? - How to move an existing Visual Studio solution from TFVC project to Git project on Azure DevOps? 使用 Visual Studio 2017 或 2019 和 AAD 帐户从 MSA 支持的 Azure DevOps 克隆存储库 - Cloning repository from MSA backed Azure DevOps using Visual Studio 2017 or 2019 and AAD account 我的 Visual Studio 2019 停止连接 Azure Devops 存储库。 几天前它还在工作 - My Visual Studio 2019 stopped connecting Azure Devops repos. It was working even few days back 不了解在 Visual Studio 2019 中使用 Git 分支(从 Azure DevOps 集成) - Not understanding working with Git branches (integrated from Azure DevOps) in Visual Studio 2019 如何恢复 azure devops/visual studio/git 中的合并分支 - How to revert a merged branch in azure devops/visual studio/git
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM