In this case, if it is hernia surgery, avoid the exercise that causes the increase of intra-abdominal pressure within three months. More than three months can be like a normal person.
Guiding opinions:
It is suggested to avoid doing this kind of exercise to cause the increase of intra-abdominal pressure. There should be no problem with general activities. You can do any exercise for more than three months.