【问题标题】:Android Studio - GitHub Push not working perfectlyAndroid Studio - GitHub Push 无法正常工作
【发布时间】:2015-09-06 20:29:53
【问题描述】:

我想将我的代码上传到 GitHub,所以我创建了一个存储库并最初上传了代码。但问题是在那之后,当我尝试推送时,Android Studio 告诉我一切都完成了,但是当我去网络时,我看到,一切都和原来一样。

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

1-开始提交

2 - 提交并推送 - 我已从下拉按钮中选择“提交并推送”-

3- 查找成功消息

4- 在repository 中什么也没做

存储库的链接是here,只有2次提交,第一次提交时有一次,然后我在网上添加了自述文件,只有这2次提交。

控制台日志是这样的-

13:35:30.985: cd C:\Android\CustomListview
13:35:30.999: git -c core.quotepath=false push --progress --porcelain cloud-platform refs/heads/master:master --tags
github --credentials get: github: command not found
github --credentials store: github: command not found
To https://source.developers.google.com/p/custom-list-view-with-image/r/default
=   refs/heads/master:refs/heads/master [up to date]
Done

为什么不上传?

【问题讨论】:

  • 可以分享一下版本控制的控制台日志吗?
  • git remote -v 返回什么? “云平台”指的是什么?
  • 谢谢!我认为目的地是错误的。应该是到github.com/abrarjahin/CustomListView-LocalImage.git?请检查 git 存储库。

标签: android git github android-studio


【解决方案1】:

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

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

【讨论】:

    【解决方案2】:

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

    $ git remote -v
    

    如果它没有显示你推送到的链接,像这样添加它

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-05-19
      • 2018-06-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-06-04
      相关资源
      最近更新 更多