Heroku deleting files upon git push?

I have a media folder that stores all my uploaded images during development and I’m pushing my django(1.5.1) project to a dev server on heroku. Inside the media folder I have

media/
    # cache and images were commited before .gitignored was added
    cache/ # store thumbnails
    images/ # store images
    .gitignore

the .gitignore has

  • No files in home on Heroku
  • Developing Django projects using Git
  • Git/Django: Granular code permissioning/availability
  • In Git, how do I configure a hook to run a server-side commands after a commit is accepted?
  • Git - How to commit a local repository to a subfolder of another local repository?
  • How to ensure there are no pdb calls out of debugging configuration?
  • *
    !.gitignore
    

    The problem is whenever I git push to heroku, all my testing uploads are wiped out by git. Is there a way to deal with this?

  • In Git: Why is it good to commit often?
  • when using git for windows, git bash could not work?
  • push branch tarball to github with git
  • Convert git repository file encoding
  • What is main differences between composer create-project and git clone?
  • Gradle script to autoversion and include the commit hash in Android
  • One Solution collect form web for “Heroku deleting files upon git push?”

    This isn’t an issue with Git, but rather with Heroku. Heroku’s file system is ephemeral, and is reset between deploys. Use a service like Amazon S3 to store uploaded files.

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