Strictly speaking no exercise is perfectly safe with a hernia. Swimming and walking are two forms of exercise that seem to trigger less problems. Sex is allowable if it does not aggravate the hernia. Sitting or standing for long periods of time may be tolerated.
Do not preform any exercise for the sole purpose of strengthening your abdominal muscles to benefit your hernia. This does not work.
If your body lets you know that a particular activity aggravates your hernia pay attention and avoid that activity
We advise that you to conduct your normal daily activities as you need to take care of your self and your family. Avoid strenuous activities. And get your hernia fixed as soon as is practical for you.
"Milan—Chronic groin pain after hernia surgery is now considered the most important issue facing inguinal hernia surgeons and their patients. Yet, there is still much uncertainty surrounding what causes the pain and how to prevent it." - Victoria Stern, General Surgery News