copper pipes should not be connected to galvanized pipes. If you want to replace a section of galvanized pipe with a section of copper, you have to use a dielectric union to make sure the metals don't have direct contact. The brass is made from copper and nickel.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.