sourcetree project migration method
Preparation
- Create a new Git warehouse and write down the Git address;
- For the Git project that needs to be migrated, confirm that the migrated branch code is running normally, and the current code version is the code branch that needs to be migrated;
start operation
-
Operate on the Git project that needs to be migrated:
[Warehouse] - [Warehouse Settings] , modify the Git address, and replace it with the newly created destination Git address;
-
Arbitrarily modify a piece of code and push it to git, and check in the new Git warehouse whether there is any update information just pushed
Not surprisingly, the original remote branch has been migrated to the new Git warehouse address, and then notify the backend to update the Git address, and the migration is successful even if the build is correct