check this out
http://stackoverflow.com/questions/6104258/how-to-reset-heroku-app-and-re-commit-everything