From earlier barghmaster, berghmaster, equivalent to bergh + master. Cognate with German Bergmeister.