与GitHub共享Android Studio项目时出错 [英] Error with sharing Android Studio project with GitHub

查看:82
本文介绍了与GitHub共享Android Studio项目时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,当我尝试通过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

  1. 在Android Studio中创建一个新项目.
  2. 创建一些文件.
  3. 转到 VCS -> 启用版本控制集成.选择git
  4. 转到 VCS -> 提交文件,然后选择要通过消息提交的所有文件.
  5. 转到 VCS -> Push .
  6. 单击定义远程".
  7. 输入已在github中创建的存储库的URL.
  8. 点击推送"并输入Github密码.
  1. Create a new project in Android Studio.
  2. Create some files.
  3. Go to VCS -> Enable Version Control Integration. Select git
  4. Go to VCS -> Commit File and select all the files that you want to commit with a message.
  5. Go to VCS -> Push.
  6. Click on Define Remote.
  7. Enter the url for the already created repository in github.
  8. 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屋!

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