With the terminals off the battery posts, liberally brush all of the parts, especially the inside of the terminals, until the corrosion is gone and you are looking at clean metal. A toothbrush-sized brush makes it easier to get to the inside part.
Once they're clean, install anti-corrosion discs if you're using them (see next step), re-install the terminals, positive side first, and you're good to go!

