Leaving this here as I keep on forgetting these whenever I try to replicate a repository to a test repository:

git remote add new_repo git@gitprovider.com:/path/to/new-test-repo.git
git fetch --all --prune
git push --prune new_repo +refs/remotes/origin/*:refs/heads/* +refs/tags/*:refs/tags/*