Android Studio - GitHub Push工作不正常

时间:2015-06-21 07:10:48

标签: android git github android-studio

我想将我的代码上传到GitHub,所以我创建了一个存储库并最初上传了代码。但问题出在那之后,当我试图推动时,Android Studio告诉所有事情都已完成,但当我进入网络时,我看到,一切都像现在一样。

让我在这里分享我的屏幕截图 -

1 - 开始提交

Starting commit

2 - 提交和推送 - 我从下拉按钮 -

中选择了“提交并按下”

Commit and push

3-找到成功消息

enter image description here

4-在reprosetory中没有做任何事情

enter image description here

存储库的链接是{{3}},只有2个提交,一个在第一次提交期间,然后我在网络中添加了read me文件,只有这2个提交存在。

控制台日志是这样的 -

POST /api/postProfile/55841857579127018071ad97 - - ms - -
I got called here
I will update 55841857579127018071ad97 with : [object Object]

为什么不上传?

2 个答案:

答案 0 :(得分:1)

drawable可以按如下方式推送到GitHub:

  1. 在Android工作室的左侧面板中,右键单击您的drawable目录。
  2. 选择git,添加。 (Ctrl+Alt+A)
  3. 以下步骤与往常一样。
  4. 完成!

答案 1 :(得分:0)

您应该检查git是否识别您的cloud-platform

$ git remote -v

如果它没有显示您要推送的链接,请像这样添加

$ git remote add cloud-platform https://github.com/abrarjahin/CustomListView-LocalImage.git