连接到Android工作室GitLab库 [英] Connecting to GitLab repositories on Android Studio

查看:443
本文介绍了连接到Android工作室GitLab库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图连接到使用的Andr​​oid工作室的I / O preVIEW一个GitLab库。有谁知道如何做到这一点/如果有可能吗?

I'm trying to connect to a GitLab repository using the I/O preview of Android Studio. Does anyone know how to do this/if it is possible yet?

谢谢!

推荐答案

在打开的Andr​​oid Studio中的一个新的项目。

To clone a repo

Open a new project in Android Studio.

点击 VCS - >从版本控制结帐 - > Git的

然后进入回购的URL和本地猪病

then enter the URL of the repo and your local direcory

打开要推的Andr​​oid Studio中的项目。

Open the project you want to push in Android Studio.

点击 VCS - >启用版本控制 - > Git的

有简化版,似乎是一种方法,通过GUI添加远程。因此,开放的Git猛砸在项目的根目录下添加做 git的远程添加< remote_name> < remote_url>

There does't seem to be a way to add a remote through the GUI. So open Git Bash in the root of the project add do git remote add <remote_name> <remote_url>.

现在,当你做 VCS - &GT;提交更改 - &GT;提交和放大器;按你应该会看到你的远程,一切都应该工作,通过图形用户界面。

Now when you do VCS -> Commit changes -> Commit & Push you should see your remote and everything should work through the GUI.

请参阅这些页面了解详细信息:

See these pages for details:

<一个href="http://www.jetbrains.com/idea/webhelp/using-git-integration.html">http://www.jetbrains.com/idea/webhelp/using-git-integration.html

<一个href="http://youtrack.jetbrains.com/issue/IDEA-87099">http://youtrack.jetbrains.com/issue/IDEA-87099

这篇关于连接到Android工作室GitLab库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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