Your changes will persist if you make them properly:
- with variables in app.yml
- with a Theme or Theme Component
- with a Plugin (if you need to change the behaviour of the back end for example)
- to the database (preferably via the front end or a rake task)
- uploads