将 Visual Studio 在线 Git 存储库集成到 Android Studio 1.0.2 [英] Integrate Visual Studio online Git Repository to Android Studio 1.0.2

查看:29
本文介绍了将 Visual Studio 在线 Git 存储库集成到 Android Studio 1.0.2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在开发过程中使用在线 Visual Studio.我想在其中集成我的 Android Studio 1.0.2 代码.但是,据我所知,Android Studio 没有 TFS 插件.这就是为什么我想使用 Git 进行源代码控制.

I am using Visual Studio online for my development process. And I want to integrate my Android Studio 1.0.2 codes in it. However, as I know Android Studio has no TFS Plugin. That's why, I want to use Git for source control.

如何将 Visual Studio Online Git 存储库集成到 Android Studio 1.0.2.我应该遵循哪些步骤?

How can I integrate Visual Studio Online Git repository to Android Studio 1.0.2. What are the steps that should I follow?

推荐答案

首先,您需要在 Visual Studio Online 中创建一个团队项目,该项目配置为使用 Git 作为源代码控制存储库:

First you need to create a Team Project in Visual Studio Online that is configured to use Git as it's Source Control Repository:

因此,请登录您的 VSO 帐户(如果您还没有,请创建一个):

So, log on to you VSO account (or create one if you don't have one yet):

从仪表板创建一个新项目:

Create a new project from the dashboard:

在出现的New Project Wizard"中,确保选择使用Git:

In the "New Project Wizard" that comes up, make sure you select the use of Git:

等待项目创建完成,完成后点击Navigate to Project.在项目的仪表板中导航到代码选项卡:

Wait for the project to be created and click Navigate to Project when it's done. In the project's dashboard navigate to the Code tab:

在代码选项卡上,您将找到新的 Git 存储库.

And on the code tab you'll find your fresh Git repository.

您还会收到一条通知,提示您必须启用基本凭据才能连接 git(git 不支持直接连接到 Microsoft 帐户/Windows Live ID).如果你还没有这样做,现在是个好时机.

You also get a notification that you must enable Basic Credentials so that git can connect (git doesn't support connecting to the Microsoft Account/Windows Live ID directly). If you haven't done so, now would be a good time.

打开您的个人资料进行设置:

Open your profile to set that up:

并配置基本凭据:

现在您已准备好连接到 Android Studio 并在 Visual Studio Online 上打开您的 Git 存储库:

Now you're ready to connect to Android Studio and open your Git repo on Visual Studio Online:

输入之前在存储库页面上突出显示的 Git 存储库位置:

Enter the Git repository location that was highlighted on the repository page before:

以及您定义的备用凭据.

And your Alternate Credentials as you had defined them.

Android Studio 现在会询问您是否要在此处创建项目.如果您选择是,您就可以开始新项目了.

Android Studio will now ask you whether you want to create a project here. If you choose yes, you're all setup to start on your new project.

如果您选择否,您可以将现有项目移动到您刚刚创建的存储库根目录中,然后提交并推送它.

If you choose no, you can move an existing project into the repository root you just created and commit and push it.

这篇关于将 Visual Studio 在线 Git 存储库集成到 Android Studio 1.0.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆