git clone --mirror <url_old_repo> .
git remote add new-origin <url_new_repo>
git push new-origin --mirror