The coil of a moving-coil galvanometer rotates in the magnetic field of a permanent magnet. The magnetic induction of the permanent magnet is many orders of magnitude (typically 104 times) stronger than that of the Earth. Hence, the Earth’s magnetic field does not affect the working of the galvanometer.