The following code is running in an Azure Pipeline to mirror the source to another git repository.
git remote add --mirror=fetch mirror MIRROR_REPO git push