Hm, making the changes in the master style is fine ( i even recommand to do them in the masterstyle if the changes should be done for all installed styles)
BUT
you should create an add-on (e.g my template changes) and assign the changes to this add-on
then you can export the add-on (which will include only the template changes) and then you can import it on your live system