His name was Pan.
Both Pan and Hermes share domain as gods of shepherds and flocks.
Pan is god of shepherds and flocks (sheep/goats), Hermes of herds and animal husbandry, and Artemis those that are wild animals.
Hermes was the god of animal husbandry, including cattle-herding, shepherding, goat-herding and even the breeding of horses and mules. Pan was the great god of flocks and shepherds among the Greeks; the son of Hermes.
Hermes was not specifically the god of shepherds, but he was associated with herding and livestock due to his role as the protector of herds and flocks. He was a multifaceted deity in Greek mythology, known as the messenger of the gods, as well as the god of trade, travelers, and thieves. His connection to shepherds comes from his broader responsibilities related to pastoral life. In literature, he is sometimes depicted as guiding or protecting shepherds and their flocks.
Pan was the Greek God of shepherds and flocks, somebody misspelled the question.
The god of the shepherds and flocks is Pan
Pan, greek god of shepherds and flocks.
Pan is the god of nature and shepherds. The previous answer was "Hera", but Hera is the god of marriage.
Pan was the Greek god of shepherds and flocks, of mountain wilds, hunting and rustic music.
The mother of Hermes' child, Pan, was the nymph Dryope or, in some accounts, the goddess Penelope. Hermes, the Greek god of trade and messenger of the gods, had various romantic liaisons, but Pan is one of his most well-known offspring. Pan is often depicted as a god of the wild, shepherds, and flocks.
Hermes is a the Greek messenger God. He is the son of Zeus and the nymph Maia. He influences shepherds, merchants, orators, authors, athletes and thieves.
As a boy, Hermes became a shepherd. He won the Caduceus (staff of shepherding) from Apollo, who previously owned it. The staff was supposed to be able to put flocks of sheep and cattle to sleep. Mortals later worshiped him as the god of shepherds because of this ability. You can read about the story of Hermes in the book "Hermes the Olympian" available as an e-book and paperback on Amazon.