与GitHub共享Android Studio项目时出错 [英] Error with sharing Android Studio project with GitHub
问题描述
因此,当我尝试通过Android Studio与GitHub共享项目时,它说我已经成功完成了,并创建了一个新的存储库,但是当我打开存储库时,它是空的.我对GitHub缺乏经验,我花了数小时尝试各种不同的事情,但我无法使它正常工作,因此,如果有人可以帮助我指出正确的方向,我将非常感激.
So when I try to share my project with GitHub through Android Studio, it says I have done it successfully, and a new repository is created, but when I open the repository, it is empty. I'm pretty inexperienced with GitHub, and I have spent hours trying different things and I can't get it to work, so if someone could help point me in the right direction, I would be extremely appreciative.
推荐答案
以下是与Android Studio和github无缝协作的步骤
Here are the steps for seamlessly working with Android Studio and github
- 在Android Studio中创建一个新项目.
- 创建一些文件.
- 转到 VCS -> 启用版本控制集成.选择git
- 转到 VCS -> 提交文件,然后选择要通过消息提交的所有文件.
- 转到 VCS -> Push .
- 单击定义远程".
- 输入已在github中创建的存储库的URL.
- 点击推送"并输入Github密码.
- Create a new project in Android Studio.
- Create some files.
- Go to VCS -> Enable Version Control Integration. Select git
- Go to VCS -> Commit File and select all the files that you want to commit with a message.
- Go to VCS -> Push.
- Click on Define Remote.
- Enter the url for the already created repository in github.
- Click Push and enter the Github password.
P.S:我使用的是Android Studio 1.5版.如果您使用的是其他版本,则步骤可能会有所不同.
P.S : I am using Android Studio version 1.5 If you are using some other version, then the steps can be a little different.
这篇关于与GitHub共享Android Studio项目时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!