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 such table” error on Heroku after django syncdb passed
  • How to solve “Application Error” in Heroku (Python)
  • Deploy as Jenkins User or Allow Jenkins To Run As Different User?
  • Heroku/python failed to detect set buildpack
  • How can I diff and patch/merge strings instead of files?
  • setup.py that pulls in non-Python github repos and puts them in the correct directory?
  • *
    !.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?

  • How to get Docker to run on a Windows System behind a corporate firewall?
  • unable to copy and paste in gitk - macosx
  • Merging Git Flow Feature Branch after Hotfixes?
  • “Unable to find remote helper for 'https'” during git clone
  • Can artists realistically cope with (distributed) version control in an open source environment?
  • Move branch pointer to different commit without checkout
  • 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.