git clone --bare http://example.com/old-repo.git cd old-repo git push --mirror http://example.com/new-repo.git