Connecting to GitLab repositories on Android Studio

后端 未结 2 1723
一个人的身影
一个人的身影 2020-12-07 09:23

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?

2条回答
  •  旧巷少年郎
    2020-12-07 09:48

    To clone a repo

    Open a new project in Android Studio.

    Click VCS -> Checkout from version control -> Git

    then enter the URL of the repo and your local direcory

    To commit

    Open the project you want to push in Android Studio.

    Click VCS -> Enable version Control -> Git

    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 .

    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/using-git-integration.html

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

提交回复
热议问题