Hydrogen chloride(HCl) reacts with metals to form:
Metal chlorides and Hydrogen
The chemical compounds which liberate H+ ions upon dissolution are known as acids. When there's a reaction between a metal and an acid, then the gas produced is Hydrogen (i.e., in molecular form-H2). So, Hydrogen chloride reacts with metals to form metal chlorides along with the liberation of hydrogen gas.
Metal + acid → Metal with radical + H2
But metals like Au, Hg, and Ag won't liberate H2 gas.