Dislocation is a lattice imperfection of crystalline materials. Dislocation movement is induced during plastic deformation and influences the mechanical properties. Although the role of dislocation in mechanical properties has been well understood, the role of dislocation in electrical properties is completely lacking. Only Matthiessen's rule addresses the electrical influence of dislocations at the macroscale. Here, we show that the electrical conductance change due to dislocations and show their movements through in situ observation of a gold nanocontact. The density of the dislocations in the gold nanocontact did not affect the electrical conductance. The repeated and discrete dislocation movements resulted in an electrical conductance oscillation. Our results demonstrate how dislocations and their movements affect electric conductance at the nanoscale. This instability issue will cause a big problem for future electric devices such as ultra low power electric devices and nanowire photovoltaic devices.