Hash comes from the French verb hacher meaning chop up small. A hash is a dish of cooked meat cut into small pieces and recooked with gravy. From this comes the derogatory sense of hash meaning a jumble of incongruous elements; a mess.
RELATED IDIOMS :
settle his hash
deal with and subdue a person very forcefully – informal
serve food in a cafe or diner - North American informal