Hernia surgery can be done with general anesthesia or half anesthesia, the specific type of anesthesia needs to be judged according to the patient’s surgical method. The choice of general anesthesia or hemi anesthesia for hernia surgery needs to be judged according to the type of surgery the patient is having. If the patient is having laparoscopic minimally invasive surgery or minimally invasive hernia surgery, general anesthesia is needed before the surgery. If a patient undergoes open hernia surgery, a general anesthesia is usually sufficient. For patients opting for open hernia repair, either general anesthesia or hemianesthesia may be chosen. In addition, if a pediatric patient undergoes hernia surgery, general anesthesia is required because pediatric patients have a low level of cooperation, and general anesthesia facilitates the surgical operation. For patients who need to undergo hernia surgery, they need to seek timely medical treatment, and the doctor will choose the appropriate anesthesia for the patient’s condition and surgical method. If a hernia surgery patient chooses general anesthesia, he or she should avoid eating and drinking 10 hours before the surgery to prevent pneumonia or choking due to aspiration after anesthesia.