The only way to effectively treat a hernia is through surgical repair. Whether or not you need surgery depends on the size of your hernia and the severity of your symptoms.