Copy the existing template code.
Revert it.
Copy the code back and save it.
You will however have out of date templates doing that and risk not having the latest bug fixes and functionality.
Not to mention some of the templates may no longer function correctly.
Really your only 2 options are to revert the templates and re-apply any edits or leave them as is.