可绘不会推到GitHub上的Andr​​oid工作室 [英] Drawables won't push to github Android Studio

查看:114
本文介绍了可绘不会推到GitHub上的Andr​​oid工作室的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我不知道为什么是这样的话,但是当我提交和推到GitHub上不管有多少PNG文件或图片我添加到我的绘文件夹中,可绘文件夹从未对仓库的变化,当我访问它直通我在GitHub上的个人资料。

Hello I am not sure why this is the case, but when I commit and push to GitHub no matter how many png files or pictures I add to my drawable folders, the drawables folder never changes on the repository when I access it thru my profile on GitHub.

例图:

我已经做了研究,但并没有找到太多物质

I have done research, but didn't find much substance

<一个href=\"http://stackoverflow.com/questions/24372262/why-build-and-libs-folders-in-android-project-cant-be-commited-or-pushed\">Why建立和Android项目库文件夹无法COMMITED或推?

我很惊讶,没有写在这个有很多。如果一个用户提交结束错误的一个项目,需要恢复在Github上的一切,只是为了找到每一个绘制或PNG文件会丢失这可能是致命的。

I was surprised that there is not a lot written on this. This can be fatal if a user commits a project ending error and needs to recover everything on Github just to find that every drawable or png file will be lost.

推荐答案

这要看你如何图像添加到Android工作室。如果你把图像各自的文件夹,而不让AS通过文件浏览器知道那么图像不会被添加到Git和它们将出现在Project Explorer红色。如果您复制图像并将其粘贴到AS项目资源管理器那么他们应该被加入到Git和显示绿色在各自的文件夹,如下图所示。

It depends on how you add the images to Android Studio. If you drop the images their respective folders without letting AS know via a file explorer then the images will not be added to git and they will appear red in the project explorer. If you copy the images and paste them into their respective folders within the AS project explorer then they should be added to git and show up green as shown below.

如果有要添加到尚未添加,然后在项目浏览器中的文件,只需右键点击Git和Git的选择文件 - >添加或使用<大骨节病>按Ctrl + Alt + A

If there are files you wish to add to git that aren't added already then just right click on the file in the project explorer and select Git -> Add or use Ctrl+Alt+A.

这篇关于可绘不会推到GitHub上的Andr​​oid工作室的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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