You can use Git to mirror an existing repository and push it to a new repository. Here’s how:

Clone the repository you want to mirror

In the CLI type git clone --bare https://gitreposerver.com/username/original-repo.git.

Push the cloned repository to the new repository

  1. Once the repo has been successfully cloned, change into the directory where the repository was cloned: cd original-repo.git

  2. Push the mirrored repository to the new repository: git push --mirror https://gitreposerver.com/username/new-repo.git

  3. Once you have successfully completed Step 3, now leave the directory of original-repo by typing cd .. and then you can delete the directory by typing rm -rf original-repo.