I have right sided abdominal pain under rib when I bend forward and it feels like something sticks out very uncomfortable and also painful if I stand or sit back up it goes away after a couple minutes .ok what could this be  a hernia or diverticulosis
It could be more of a cholelithiasis or gall bladder stone. Chances of diverticulosis are less but hernia pain usually occurs much below the ribs almost above the pelvic bone under your belt line.