It is a very important question. Accumulating merit.
If you can undo all your past wrong doings then that will accrue merit.
For example if you have lied in the past and now you have taken an oath to never lie again that brings merit.
If you have collected money by wrongful means and now if you decide to donate all your money then that brings merit.
If you ...