This is a decent, well-cited article on the subject: https://ourworldindata.org/food-choice-vs-eating-local
It summarises the differences in global greenhouse emissions between various types of food, and the contributions of the different sources of these emissions - farming, transport, land use change, and so on.