The German Shepherd breed appeared late at the end of the 19th century in Germany and they were first exhibited at a show in Hanover in 1882. They were not like German Shepherds as we know them today though being rough coated, short tailed and rather resembling mongrels. The German Shepherd Dog as we now know it didn't really appear until after the Second World War.
The breed was actually created by the cross breeding of working sheep dogs from rural Germany by an ex cavalry officer called Max von Stephanitz whose aim was to create a working dog for herding which could trot for long periods.