How to Synchronize and Back Up a Git Repository
· β 1 min read
Because the Git repository currently in use is about to become unavailable, the repository code needs to be migrated to a new Git repository. The specific procedure is as follows:
Log in to the new repository and create a repository. After creation, the new repository address is: http://gitlab.your-new-domain.com/project.git
Clone the old repository as a mirror locally: 1 2 3 git clone --mirror http://gitlab.