如何通过VSTS创建存储库或将代码推送到子文件夹

时间:2018-06-14 09:23:19

标签: tfs azure-devops android-studio-3.0

我正在尝试将新项目从android studio推送到VSTS(Visual Studio Team Service)。我使用Team Services Git导入VSTS上的现有项目。

enter image description here

现在问题是我真的不知道如何将我的代码推送到VSTS上的特定目录中,如下面的截图所示。

enter image description here

每当我点击import into Team Services Git时,它会显示输入我的Windows凭证的对话框,并且在成功登录后,我只能看到父文件夹而不是子文件夹。

enter image description here

1 个答案:

答案 0 :(得分:0)

<强> 更新

与Git不同,您不应在VCS中导入代码。

在版本控制栏中,应该有一个本地更改选项,选择文件夹和文件,右键单击并选择提交更改,最后签入更改。然后,您的本地项目应同步同步到VSTS服务器端。 前提条件:您拥有本地Andriod文件夹的正确工作区映射。

enter image description here

您需要先安装the VSTS plugin for IntelliJ。此插件与Android studio兼容。

您可以使用 GIT 作为版本控制。然后用git命令行创建repo并用你的repo添加/导入代码并不难。

详情教程请参阅此链接: VSTS Plugin for IntelliJ IDEA and Android Studio

根据评论,您似乎想使用 TFVC 作为版本控制,您必须使用 TEE CLC 来提供TFVC支持。

对于视频教程,您可以参考此链接Getting Started with TFVC inside of Android Studio with the Team Services Plugin您还可以在How to Use TFS in Android Studio

中查看我的回复