Depending on the specific type of hernia, you can engage in light exercise, usually swimming, walking, or stationary bicycling. Lifting or vigorous exercise can irritate the hernia and cause increased pain and risk for complications. Generally, if the exercise causes pain or discomfort, discontinue the activity.