background
Ideally: Synchronize data when o&M redeploys gitLab servers. Actual: the operation and maintenance synchronized the code data in March, and the code changes in March and April have not been synchronized now; That’ll have to be synchronized manually.
Solution – Use Git bash
First, update the code from the old address to local first
git pull origin master
Copy the code
Update the remote address of the local project
// Check the remote address of the project
git remote -v
// Delete the remote address of the project
git remote rm origin
// Reset the remote address of the project
git remote add origin [url]
Copy the code
Third, push branch again, migration is complete
git push origin master
Copy the code