During the height of the Baltimore & Ohio Railroad, Garrett served as the junction of its Pittsburgh Division with its Berlin branch. The Berlin Branch Railroad was originally built by the Buffalo Valley Railroad Company in 1871. This 8.5 mile branch line connected Berlin to the main B&O line (also known as the Pittsburgh & Connellsville Railroad) as it passed through Garrett, and it was taken over by the B&O itself in 1880. There were seven stations located along the Berlin branch as it ran northeast along the Buffalo Creek valley: Garrett, Burkholder, Buchle, Bitner, Pine Hill, Hanger's, and Berlin. A view of Garrett appeared in a collection of photographs from along the B&O's lines that was published in book form in 1872 and digitized by the DeGolyer Library, Southern Methodist University.