How to move Git repositories and minimize downtime
问题 I will be moving Git repositories from an older SCM server to a new one. My main concern (other than fidelity, of course) is to minimize downtime. Here is my plan: On the new machine, clone each repository using git clone --mirror Copy over repo hooks for each repository Disallow access to old server (we use gitosis, so remove access for all users except for the new server) Move the DNS entry so the DNS alias Git users use Perform git pull for each repository on the new server. For each