What generally happens in a foot surgery?

Foot surgery. It depends on the patient, surgical procedure, and surgeon. To difficult to answer without more information.
More Info. There are thousands of types of foot surgery so it is not possible to say what "generally" happens.
Foot surgery. Generelly foot surgery can be seen as a local procedure or general anesthesia procedure. Local procedures have the area numbed about the area and the procedure is done. General anesthesia given in the hospital, is needed for procedures that require it. The area is scrubbed, a tourniquet may or mat not be used to stop bleeding during the surgery. The incision is closed and a dressing is applied.
Foot surgery. As stated that is just too vague to give an answer. There are literally hundreds of procedures.
Many possibilities. There are many posible types of surgeries for various foot related problem.