Drawables won't push to github Android Studio

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.

Example picture:

  • Android Studio not committing to GitHub
  • Merge branches in git on Android Studio
  • Git stopped working on Android studio
  • SVN - how does removing a bin folder cause the src folder to be removed instead?
  • Github 3.0.11 does not have git.exe - how to integrate with Android-Studio
  • Cannot commit android “gen” folder to Git
  • enter image description here

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

    Why build and libs folders in Android project can't be commited or pushed?

    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.

  • Why does git fetch fail with “Could not resolve host: (nil)…” with https://github.com/mxcl/homebrew origin?
  • Is it possible to merge commits in git?
  • How to set --work-tree or --git-dir in smartgit?
  • GitHub: Clone succeeded, but checkout failed
  • Upstream merge commits in pull request
  • Point branch to new commit
  • One Solution collect form web for “Drawables won't push to github Android Studio”

    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.

    Android studio file color example

    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.

    Git Baby is a git and github fan, let's start git clone.