How do I reset the check engine light after replacing a faulty gas cap? on 2005 Chevrolet Silverado 2500 HD

How do I reset the check engine light after replacing a faulty gas cap? The "tighten or check gas cap" message appeared on my dash after someone tried to steal gas out of my truck and was unsuccessful due to the lockable gas cap that was on my truck.

Get Your Car Fixed at a RepairPal Certified Shop.
We certify shops based on expertise, quality work, and verified customer reviews
1 answer
Remove neg. battery cable for a couple minutes. Then reattach.