在 Android Studio 上连接到 GitLab 存储库 [英] Connecting to GitLab repositories on Android Studio

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

问题描述

我正在尝试使用 Android Studio 的 I/O 预览连接到 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?

推荐答案

克隆一个 repo

在 Android Studio 中打开一个新项目.

To clone a repo

Open a new project in Android Studio.

点击VCS->从版本控制中签出 ->git

然后输入 repo 的 URL 和你的本地目录

then enter the URL of the repo and your local direcory

在 Android Studio 中打开你要推送的项目.

Open the project you want to push in Android Studio.

点击VCS->启用版本控制 ->git

似乎没有办法通过 GUI 添加遥控器.所以打开项目根目录下的Git Bash add do git remote add <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 ->提交更改 ->提交&推你应该看到你的遥控器,一切都应该通过GUI工作.

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:

http://www.jetbrains.com/idea/webhelp/使用-git-integration.html

http://youtrack.jetbrains.com/issue/IDEA-87099

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

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